diff --git a/lib/login.js b/lib/login.js index a7e74cc..b1719b1 100644 --- a/lib/login.js +++ b/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 }