Quote patterns in error message (#14631)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-03-30 16:57:01 +08:00
1 parent c933bffc49
commit 233ae12d26
1 file changed
+4 -3
+4 -3
View File
@@ -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;
}