diff options
author | Marcel Klehr <mklehr@gmx.net> | 2013-03-26 11:19:36 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2013-03-26 11:19:36 +0100 |
commit | e8bae61cf5cfb568a237be4932460626409a056f (patch) | |
tree | 2577ec0f65e73cf2e823496040f55b1fd3d2527a /src/node/hooks/express | |
parent | b35d9c14fda2904d4a3dd1e55a6fdb6ea52f1416 (diff) | |
download | etherpad-lite-e8bae61cf5cfb568a237be4932460626409a056f.zip |
/admin/plugins: Add progress indicators and report errors
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r-- | src/node/hooks/express/adminplugins.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node/hooks/express/adminplugins.js b/src/node/hooks/express/adminplugins.js index 70ace317..bf796ee7 100644 --- a/src/node/hooks/express/adminplugins.js +++ b/src/node/hooks/express/adminplugins.js @@ -81,13 +81,15 @@ exports.socketio = function (hook_name, args, cb) { socket.on("install", function (plugin_name) { installer.install(plugin_name, function (er) { - socket.emit("finished:install", {error: er}); + if(er) console.warn(er) + socket.emit("finished:install", {error: er? er.message : null}); }); }); socket.on("uninstall", function (plugin_name) { installer.uninstall(plugin_name, function (er) { - socket.emit("finished:uninstall", {error: er}); + if(er) console.warn(er) + socket.emit("finished:uninstall", {error: er? er.message : null}); }); }); }); |