From fc94383487f90099b6dd452ff8e52cd9859c6002 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 31 Oct 2014 22:45:06 +0000 Subject: [PATCH] Better error messages with correct stack traces --- IPython/html/static/base/js/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/base/js/utils.js b/IPython/html/static/base/js/utils.js index ff9febf9c..b6cc19411 100644 --- a/IPython/html/static/base/js/utils.js +++ b/IPython/html/static/base/js/utils.js @@ -618,7 +618,8 @@ define([ if (module_name) { require([module_name], function(module) { if (module[class_name] === undefined) { - reject(new Error('Class not found in module.')); + console.error('Class '+class_name+' not found in module '+module_name) + reject(); } else { resolve(module[class_name]); } @@ -627,7 +628,8 @@ define([ if (registry && registry[class_name]) { resolve(registry[class_name]); } else { - reject(new Error('Class not found in registry.')); + console.error('Class '+class_name+' not found in registry ', registry); + reject(); } } });