tweaked error message
This commit is contained in:
parent
250d462da2
commit
c492cc53be
|
@ -101,7 +101,7 @@ const sync = () =>
|
||||||
return reject("Please set a valid WaniKani API Token")
|
return reject("Please set a valid WaniKani API Token")
|
||||||
|
|
||||||
// Get user info
|
// 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)
|
if(user === undefined)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue