summaryrefslogtreecommitdiff
path: root/ext/bg/js/anki.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-07 20:46:02 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-08 21:32:08 -0400
commit88de4271843197d37243a9ac360236f9dfb414e1 (patch)
treebef12c8b20d03db34046eda63b70b716c67e0942 /ext/bg/js/anki.js
parentbf5d301685db6c31ea64771dab59610586bc1619 (diff)
Throw Error instead of string
Diffstat (limited to 'ext/bg/js/anki.js')
-rw-r--r--ext/bg/js/anki.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js
index bd4e46cd..5c89aad8 100644
--- a/ext/bg/js/anki.js
+++ b/ext/bg/js/anki.js
@@ -67,7 +67,7 @@ class AnkiConnect {
if (this.remoteVersion < this.localVersion) {
this.remoteVersion = await this.ankiInvoke('version');
if (this.remoteVersion < this.localVersion) {
- throw 'Extension and plugin versions incompatible';
+ throw new Error('Extension and plugin versions incompatible');
}
}
}