clarify error slightly more

This commit is contained in:
Robert Brignull 2020-07-08 15:11:29 +01:00
parent dcebdd6441
commit 9fb69dda17
3 changed files with 3 additions and 3 deletions

2
lib/config-utils.js generated
View file

@ -118,7 +118,7 @@ function validateAndSanitisePath(originalPath, propertyName, configFile) {
}
if (path.match(pathStarsRegex)) {
throw new Error(getConfigFilePropertyError(configFile, propertyName, '"' + originalPath + '" contains an invalid "**" wildcard. ' +
'They must be immediately preceeded and followed by a slash as in "/**/".'));
'They must be immediately preceeded and followed by a slash as in "/**/", or come at the start or end.'));
}
return path;
}

File diff suppressed because one or more lines are too long

View file

@ -130,7 +130,7 @@ export function validateAndSanitisePath(originalPath: string, propertyName: stri
configFile,
propertyName,
'"' + originalPath + '" contains an invalid "**" wildcard. ' +
'They must be immediately preceeded and followed by a slash as in "/**/".'));
'They must be immediately preceeded and followed by a slash as in "/**/", or come at the start or end.'));
}
return path;
}