Skip to content

Commit 5bbb326

Browse files
author
doga
committed
Improved error messages to be more accurate and more detailed
1 parent c7e79a2 commit 5bbb326

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

.idea/workspace.xml

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v1/core/Converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Converter.prototype._preProcessLines = function (lines, startIdx) {
207207
rtn.push(result);
208208
} else {
209209
rtn.push(lines[i]);
210-
this.emit("error", new Error("preProcessLine should return a string but got: " + JSON.stringify(result) + typeof result));
210+
this.emit("error", new Error("preProcessLine should return a string but got: " + JSON.stringify(result) + "Type of this line is: " + typeof result));
211211
}
212212
}
213213
return rtn;

0 commit comments

Comments
 (0)