aboutsummaryrefslogtreecommitdiffstats
path: root/xul-ext/chrome/content
diff options
context:
space:
mode:
Diffstat (limited to 'xul-ext/chrome/content')
-rw-r--r--xul-ext/chrome/content/icevault.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/xul-ext/chrome/content/icevault.js b/xul-ext/chrome/content/icevault.js
index 2006e3a..fe2cb50 100644
--- a/xul-ext/chrome/content/icevault.js
+++ b/xul-ext/chrome/content/icevault.js
@@ -131,7 +131,7 @@ var icevault = (function() {
send(state.outStream, 'OK');
}
catch (e if typeof e == "string" || e instanceof SyntaxError) {
- send(state.outStream, 'ERROR ' + (typeof e == "string" ? e : e.message));
+ send(state.outStream, 'ERROR ' + JSON.stringify(typeof e == "string" ? e : e.message));
}
break;
@@ -142,7 +142,7 @@ var icevault = (function() {
break;
default:
- send(state.outStream, 'ERROR Invalid command: ' + command);
+ send(state.outStream, 'ERROR ' + JSON.stringify('Invalid command: ' + command));
}
};