Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
0083a073
Commit
0083a073
authored
Jun 24, 2015
by
Mark Haines
Browse files
Throw an Error object rather than a string in the javascript bindings.
parent
07072912
Changes
2
Hide whitespace changes
Inline
Side-by-side
javascript/axolotl_post.js
View file @
0083a073
...
...
@@ -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
;
}
...
...
javascript/build.py
100644 → 100755
View file @
0083a073
File mode changed from 100644 to 100755
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment