clarify error slightly more
This commit is contained in:
parent
dcebdd6441
commit
9fb69dda17
3 changed files with 3 additions and 3 deletions
2
lib/config-utils.js
generated
2
lib/config-utils.js
generated
|
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue