Skip to content

Commit

Permalink
Improve transform error output
Browse files Browse the repository at this point in the history
This change makes it so that the error message itself is printed on the
same line as the report status and file name. This makes it easier for
other tools to process the output.
  • Loading branch information
fkling committed Dec 3, 2018
1 parent 9c83c39 commit 4e8da4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function run(data) {
updateStatus(
'error',
file,
'Transformation error\n' + trimStackTrace(err.stack)
'Transformation error ('+ err.message.replace(/\n/g, ' ') + ')\n' + trimStackTrace(err.stack)
);
callback();
}
Expand Down

0 comments on commit 4e8da4b

Please sign in to comment.