diff --git a/lib/login.js b/lib/login.js index f34653b..c97ed03 100644 --- a/lib/login.js +++ b/lib/login.js @@ -55,7 +55,14 @@ function sleep(ms) { } async function register(url, {retryEmail = false} = {}) { - const email = await readEmail({invalid: retryEmail}) + let email + try { + email = await readEmail({invalid: retryEmail}) + } catch (err) { + process.stdout.write('\n') + throw err + } + process.stdout.write('\n') if (!validate(email)) {