From c492cc53bef42730f03028dd5a569c2f58ae15b0 Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Sun, 20 Mar 2022 15:55:31 +0100 Subject: [PATCH] tweaked error message --- background.js => src/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename background.js => src/background.js (98%) diff --git a/background.js b/src/background.js similarity index 98% rename from background.js rename to src/background.js index a395c3e..1380551 100644 --- a/background.js +++ b/src/background.js @@ -101,7 +101,7 @@ const sync = () => return reject("Please set a valid WaniKani API Token") // Get user info - var user = await query(data.token, "https://api.wanikani.com/v2/user").catch(reason => reject("WaniKani API request failed: " + reason)) + var user = await query(data.token, "https://api.wanikani.com/v2/user").catch(reason => reject(reason)) if(user === undefined) return