diff --git a/lib/login.js b/lib/login.js index b1719b1..46e1063 100644 --- a/lib/login.js +++ b/lib/login.js @@ -27,10 +27,11 @@ async function getVerificationData(url, email) { body: data }) - const body = await res.json() if (res.status !== 200) { - throw new Error(`Verification error: ${res.status} – ${body}`) + throw new Error( + `Verification error: ${res.status} – ${JSON.stringify(body)}` + ) } return body }