Skip to content

Commit

Permalink
fix: show detailed error in overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Feb 13, 2021
1 parent 09207a6 commit ba01b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-src/default/index.js
Expand Up @@ -125,7 +125,7 @@ const onSocketMessage = {
},
errors(errors) {
log.error('Errors while compiling. Reload prevented.');
const strippedErrors = errors.map((error) => stripAnsi(error));
const strippedErrors = errors.map((error) => stripAnsi(error.message ? error.message : error));
sendMessage('Errors', strippedErrors);
for (let i = 0; i < strippedErrors.length; i++) {
log.error(strippedErrors[i]);
Expand Down

0 comments on commit ba01b05

Please sign in to comment.