mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +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) =>
|
||||
if not json.email_address or not json.provider
|
||||
console.error("Returned account data is invalid", json)
|
||||
atom.emitError
|
||||
msg: "Returned account data is invalid"
|
||||
json: json
|
||||
console.log JSON.stringify(json)
|
||||
atom.emitError(new Error("Returned account data is invalid"))
|
||||
return
|
||||
return if @_tokens[json.id]
|
||||
@_tokens[json.id] = json.auth_token
|
||||
|
|
Loading…
Reference in a new issue