Browse Source

Log more info when `--login` fails

master
Matheus Fernandes 8 years ago
parent
commit
1773cfc817
No known key found for this signature in database GPG Key ID: DD07CA4EA7B65C4F
  1. 6
      lib/login.js

6
lib/login.js

@ -27,11 +27,11 @@ async function getVerificationData(url, email) {
body: data
})
if (res.status !== 200) {
throw new Error('Verification error')
}
const body = await res.json()
if (res.status !== 200) {
throw new Error(`Verification error: ${res.status}${body}`)
}
return body
}

Loading…
Cancel
Save