Quote patterns in error message (#14631)
This commit is contained in:
1 parent
c933bffc49
commit
233ae12d26
1 file changed
+4
-3
@@ -107,9 +107,10 @@ async function* expandPatternsInternal(context) {
|
||||
try {
|
||||
result = await fastGlob(glob, globOptions);
|
||||
} catch ({ message }) {
|
||||
/* c8 ignore next */
|
||||
yield { error: `${errorMessages.globError[type]}: ${input}\n${message}` };
|
||||
/* c8 ignore next */
|
||||
/* c8 ignore next 4 */
|
||||
yield {
|
||||
error: `${errorMessages.globError[type]}: "${input}".\n${message}`,
|
||||
};
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user