lib/faastruby/cli/commands/account/confirm.rb in faastruby-0.5.19 vs lib/faastruby/cli/commands/account/confirm.rb in faastruby-0.5.20

- old
+ new

@@ -20,10 +20,13 @@ puts "- The system won't send an email if you account status is already 'confirmed'" print "Confirmation Token: " user.confirmation_token = STDIN.gets.chomp spinner = spin("Confirming your account...") user.confirm_account! - FaaStRuby::CLI.error(user.errors) if user.errors.any? + if user.errors.any? + spinner.error + FaaStRuby::CLI.error(user.errors) + end spinner.success user.save_credentials puts "Login successful!" migrate end