Skip to content

Commit

Permalink
Adding more info to the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jul 7, 2018
1 parent 5820c57 commit 61f35cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions javascript/remote/ui/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ remote.ui.Banner.prototype.createDom = function() {
var div = this.getDomHelper().createDom(goog.dom.TagName.DIV, 'banner');
goog.style.setStyle(div, 'position', 'absolute');
goog.style.setStyle(div, 'top', '0');
goog.style.setStyle(div, 'white-space', 'pre');

goog.events.listen(div, goog.events.EventType.CLICK,
goog.bind(this.setVisible, this, false));
Expand Down
2 changes: 1 addition & 1 deletion javascript/remote/ui/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ remote.ui.Client.prototype.execute_ = function(command) {
*/
remote.ui.Client.prototype.logError_ = function(msg, e) {
goog.log.error(this.log_, msg + '\n' + e);
this.banner_.setMessage(msg);
this.banner_.setMessage(msg + '\n\n' + e);
this.banner_.setVisible(true);
};

Expand Down

0 comments on commit 61f35cf

Please sign in to comment.