mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
fix(account): error reporter returns an error
This commit is contained in:
parent
7aaa676672
commit
9b1be6a8a8
1 changed files with 2 additions and 3 deletions
|
@ -78,9 +78,8 @@ class AccountStore
|
||||||
addAccountFromJSON: (json) =>
|
addAccountFromJSON: (json) =>
|
||||||
if not json.email_address or not json.provider
|
if not json.email_address or not json.provider
|
||||||
console.error("Returned account data is invalid", json)
|
console.error("Returned account data is invalid", json)
|
||||||
atom.emitError
|
console.log JSON.stringify(json)
|
||||||
msg: "Returned account data is invalid"
|
atom.emitError(new Error("Returned account data is invalid"))
|
||||||
json: json
|
|
||||||
return
|
return
|
||||||
return if @_tokens[json.id]
|
return if @_tokens[json.id]
|
||||||
@_tokens[json.id] = json.auth_token
|
@_tokens[json.id] = json.auth_token
|
||||||
|
|
Loading…
Reference in a new issue