aboutsummaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'javascript')
-rw-r--r--javascript/axolotl_post.js4
-rwxr-xr-x[-rw-r--r--]javascript/build.py0
2 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;
}
diff --git a/javascript/build.py b/javascript/build.py
index 2b754e9..2b754e9 100644..100755
--- a/javascript/build.py
+++ b/javascript/build.py