Skip to content

Commit

Permalink
Improved error messages to be more accurate and more detailed
Browse files Browse the repository at this point in the history
  • Loading branch information
doga committed Apr 1, 2021
1 parent c7e79a2 commit 5bbb326
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 1 deletion.
79 changes: 79 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v1/core/Converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Converter.prototype._preProcessLines = function (lines, startIdx) {
rtn.push(result);
} else {
rtn.push(lines[i]);
this.emit("error", new Error("preProcessLine should return a string but got: " + JSON.stringify(result) + typeof result));
this.emit("error", new Error("preProcessLine should return a string but got: " + JSON.stringify(result) + "Type of this line is: " + typeof result));
}
}
return rtn;
Expand Down

0 comments on commit 5bbb326

Please sign in to comment.