detailed error message

This commit is contained in:
pypy
2020-01-13 22:13:19 +09:00
parent ac8ba5b824
commit abe28878e4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -426,10 +426,10 @@ CefSharp.BindObjectAsync(
} }
} }
if (error !== undefined) { if (error !== undefined) {
text.push(error); text.push(JSON.stringify(error));
} }
if (extra !== undefined) { if (extra !== undefined) {
text.push(extra); text.push(JSON.stringify(extra));
} }
text = text.map((s) => escapeTag(s)).join('<br>'); text = text.map((s) => escapeTag(s)).join('<br>');
if (text.length) { if (text.length) {
+1 -1
View File
@@ -362,7 +362,7 @@ CefSharp.BindObjectAsync(
} }
} }
if (error !== undefined) { if (error !== undefined) {
text.push(error); text.push(JSON.stringify(error));
} }
text = text.map((s) => escapeTag(s)).join('<br>'); text = text.map((s) => escapeTag(s)).join('<br>');
if (text.length) { if (text.length) {