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);