diff --git a/src/cli/expand-patterns.js b/src/cli/expand-patterns.js index 14994ed46..c97960d6d 100644 --- a/src/cli/expand-patterns.js +++ b/src/cli/expand-patterns.js @@ -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; }