diff --git a/src/utils/api.ts b/src/utils/api.ts index cdbccef27..98cd1e2a2 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -28,7 +28,7 @@ export function handleUnsuccessfulApiResponse( spinner.stop() throw new AuthError(message) } - spinner.error( + spinner.errorAndStop( `${colors.bgRed(colors.white('API returned an error:'))} ${message}` ) process.exit(1)