aboutsummaryrefslogtreecommitdiff
path: root/javascript/axolotl_post.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/axolotl_post.js')
-rw-r--r--javascript/axolotl_post.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/axolotl_post.js b/javascript/axolotl_post.js
index 7902725..16294fb 100644
--- a/javascript/axolotl_post.js
+++ b/javascript/axolotl_post.js
@@ -42,7 +42,7 @@ function account_method(wrapped) {
var message = Pointer_stringify(
Module['_axolotl_account_last_error'](arguments[0])
);
- throw "AXOLOTL." + message;
+ throw new Error("AXOLOTL." + message);
}
return result;
}
@@ -121,7 +121,7 @@ function session_method(wrapped) {
var message = Pointer_stringify(
Module['_axolotl_session_last_error'](arguments[0])
);
- throw "AXOLOTL." + message;
+ throw new Error("AXOLOTL." + message);
}
return result;
}