diff --git a/cli/signup/mod.ts b/cli/signup/mod.ts index a4a94da..344cfed 100644 --- a/cli/signup/mod.ts +++ b/cli/signup/mod.ts @@ -44,6 +44,14 @@ export const action = async (options: { }, }); if (signUpRes.error) { + if ( + signUpRes.error.message.includes( + "Username already exists!", + ) + ) { + spinner.fail("Username already taken, please try another one"); + Deno.exit(1); + } spinner.fail("Signup failed"); throw signUpRes.error; }