diff --git a/IPython/html/static/base/js/utils.js b/IPython/html/static/base/js/utils.js
index 5ffe5e6..4a13efe 100644
--- a/IPython/html/static/base/js/utils.js
+++ b/IPython/html/static/base/js/utils.js
@@ -656,10 +656,7 @@ define([
if (registry && registry[class_name]) {
resolve(registry[class_name]);
} else {
- reject(new Error({
- message: 'Class '+class_name+' not found in registry ',
- registry: registry
- }));
+ reject(new Error('Class '+class_name+' not found in registry '));
}
}
});
diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js
index e6019c5..9d98bed 100644
--- a/IPython/html/static/widgets/js/widget.js
+++ b/IPython/html/static/widgets/js/widget.js
@@ -75,10 +75,7 @@ define(["widgets/js/manager",
case 'update':
this.state_change = this.state_change.then(function() {
return that.set_state(msg.content.data.state);
- }).catch(utils.reject({
- message: "Couldn't process update msg",
- model_id: that.id
- }, true));
+ }).catch(utils.reject("Couldn't process update msg for model id '" + String(that.id) + "'", true));
break;
case 'custom':
this.trigger('msg:custom', msg.content.data.content);
@@ -86,10 +83,7 @@ define(["widgets/js/manager",
case 'display':
this.state_change = this.state_change.then(function () {
return that.widget_manager.display_view(msg, that);
- }).catch(utils.reject({
- message: "Couldn't process display msg",
- model_id: that.id
- }, true));
+ }).catch(utils.reject("Couldn't process display msg for model id '" + String(that.id) + "'", true));
break;
}
},