aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-10-15 17:34:29 -0700
committerAlex Yatskov <alex@foosoft.net>2016-10-15 17:34:29 -0700
commitef25ad144e8e93ca280ba218b28f981425eed2e3 (patch)
tree48a60ebf95f49f3c7be1e1402276c47fb9a16ef8 /ext
parent6898de4ca65b3313d260a993f0f4e88d043152b6 (diff)
WIP
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/ankiweb.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/ankiweb.js b/ext/bg/js/ankiweb.js
index 4b5652cb..5b91594e 100644
--- a/ext/bg/js/ankiweb.js
+++ b/ext/bg/js/ankiweb.js
@@ -81,7 +81,7 @@ class AnkiWeb {
return new Promise((resolve, reject) => {
$.get('https://ankiweb.net/edit/', (data, status) => {
if (status !== 'success') {
- reject('scrape failed');
+ reject('failed to execute scrape request');
return;
}
@@ -119,10 +119,10 @@ class AnkiWeb {
if (data.includes('class="mitem"')) {
resolve();
} else {
- reject('authentication failed');
+ reject('failed to authenticate');
}
} else {
- reject('login failed');
+ reject('failed to execute login request');
}
});
});
@@ -134,7 +134,7 @@ class AnkiWeb {
if (status === 'success') {
resolve();
} else {
- reject('logout failed');
+ reject('failed to execute logout request');
}
});
});