Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
index 37083efd0dfa014aef8ee09a0965ecb68846e065..42b8b5d6d6722772e9d3f2a353322e0e1ef93205 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js |
@@ -71,7 +71,8 @@ WebInspector.JavaScriptCompiler.prototype = { |
} |
if (!exceptionDetails) |
return; |
- this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourceCode.Message.Level.Error, exceptionDetails.text, exceptionDetails.lineNumber, exceptionDetails.columnNumber); |
+ var text = WebInspector.ConsoleMessage.simpleTextFromException(exceptionDetails); |
+ this._sourceFrame.uiSourceCode().addLineMessage(WebInspector.UISourceCode.Message.Level.Error, text, exceptionDetails.lineNumber, exceptionDetails.columnNumber); |
this._compilationFinishedForTest(); |
} |
}, |