From 40c89d3373b23c5a1bdabf06d915a8bb3e6eacab Mon Sep 17 00:00:00 2001 From: Mark Molinaro <16494982+markjm@users.noreply.github.com> Date: Tue, 5 Jul 2022 21:56:09 +0000 Subject: [PATCH] Make error message match fileName --- codeowners.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeowners.js b/codeowners.js index 74c4678..a8aaa36 100755 --- a/codeowners.js +++ b/codeowners.js @@ -21,7 +21,7 @@ function Codeowners(currentPath, fileName = 'CODEOWNERS') { ); if (!codeownersPath) { - throw new Error(`Could not find a CODEOWNERS file`); + throw new Error(`Could not find a ${fileName} file`); } this.codeownersFilePath = trueCasePath(codeownersPath);