summaryrefslogtreecommitdiff
path: root/src/node/hooks
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2015-01-25 02:44:10 +0000
committerJohn McLear <john@mclear.co.uk>2015-01-25 02:44:10 +0000
commitaca745ddf6a180e17c461bfb352281ee1f3acb1c (patch)
treea2430141a2d331906d3e0b4e7c05279fbae1406d /src/node/hooks
parent831151cfba6a53aa83e86ab5079b940f28317a34 (diff)
downloadetherpad-lite-aca745ddf6a180e17c461bfb352281ee1f3acb1c.zip
tell installer if old etherpad needs updating during plugin install
Diffstat (limited to 'src/node/hooks')
-rw-r--r--src/node/hooks/express/adminplugins.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/hooks/express/adminplugins.js b/src/node/hooks/express/adminplugins.js
index 8e372f1c..34eafd0b 100644
--- a/src/node/hooks/express/adminplugins.js
+++ b/src/node/hooks/express/adminplugins.js
@@ -83,7 +83,7 @@ exports.socketio = function (hook_name, args, cb) {
socket.on("install", function (plugin_name) {
installer.install(plugin_name, function (er) {
if(er) console.warn(er)
- socket.emit("finished:install", {plugin: plugin_name, error: er? er.message : null});
+ socket.emit("finished:install", {plugin: plugin_name, code: er? er.code : null, error: er? er.message : null});
});
});