Index: third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js b/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
index aa3765c0bf6dc06f1782ca527f5742f4384b7066..d23a1946feb1db212deee1450dcad799df1dde16 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
@@ -605,8 +605,7 @@ WebInspector.RemoteObjectImpl.prototype = { |
return; |
} |
if (exceptionDetails) { |
- var msg = new WebInspector.ConsoleMessage(this._target, WebInspector.ConsoleMessage.MessageSource.JS, WebInspector.ConsoleMessage.MessageLevel.Error, exceptionDetails.text); |
- this._target.consoleModel.addMessage(msg); |
+ this._target.consoleModel.addMessage(WebInspector.ConsoleMessage.fromException(this._target, exceptionDetails, undefined, undefined, undefined)); |
callback(null, null); |
return; |
} |