Skip to content

Commit ba01b05

Browse files
authored
fix: show detailed error in overlay
1 parent 09207a6 commit ba01b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-src/default/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const onSocketMessage = {
125125
},
126126
errors(errors) {
127127
log.error('Errors while compiling. Reload prevented.');
128-
const strippedErrors = errors.map((error) => stripAnsi(error));
128+
const strippedErrors = errors.map((error) => stripAnsi(error.message ? error.message : error));
129129
sendMessage('Errors', strippedErrors);
130130
for (let i = 0; i < strippedErrors.length; i++) {
131131
log.error(strippedErrors[i]);

0 commit comments

Comments
 (0)