From 23dd4c73e225eac8a624d43e7590cef405956b2a Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 24 Jan 2013 22:40:31 +0100 Subject: [PATCH] pluginfw/installer.js: Don't freak out users with cryptic errors, just use the error message --- src/static/js/pluginfw/installer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/static/js/pluginfw/installer.js b/src/static/js/pluginfw/installer.js index e491f0771..eb10f8afd 100644 --- a/src/static/js/pluginfw/installer.js +++ b/src/static/js/pluginfw/installer.js @@ -15,7 +15,10 @@ var withNpm = function (npmfn, final, cb) { cb({progress: 0.5, message:message.msg + ": " + message.pref}); }); npmfn(function (er, data) { - if (er) return cb({progress:1, error:er.code + ": " + er.path}); + if (er) { + console.error(er); + return cb({progress:1, error: er.message}); + } if (!data) data = {}; data.progress = 1; data.message = "Done.";