Skip to content

Commit

Permalink
Clarify missing css error message.
Browse files Browse the repository at this point in the history
 * Avoid confusion by quoting the error.ref. Without quotes an error message such "(file) contains a reference to the file path." is possible.
  • Loading branch information
RolfBabijn committed Feb 24, 2021
1 parent c4e3fd2 commit c4565c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/friendly-errors/formatters/missing-css-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function formatErrors(errors) {
chalk.red('Module build failed: Module not found:')
);
for (let error of errors) {
messages.push(`${error.file} contains a reference to the file ${error.ref}.`);
messages.push(`${error.file} contains a reference to the file "${error.ref}".`);
messages.push('This file can not be found, please check it for typos or update it if the file got moved.');
messages.push('');
}
Expand Down

0 comments on commit c4565c3

Please sign in to comment.