From 79d37892e65adb2c8452d5ea568aac3154e82ab6 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 22 Jul 2024 16:43:47 +0200 Subject: [PATCH] Fix `undefined` in spinner text --- components/git/release.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/git/release.js b/components/git/release.js index 708efeec..aa4466b0 100644 --- a/components/git/release.js +++ b/components/git/release.js @@ -134,8 +134,7 @@ async function main(state, argv, cli, dir) { 'Username was undefined - do you have your .ncurc set up correctly?'); return; } else if (releasers.every(r => r.login !== release.username)) { - cli.stopSpinner(); - cli.error(`${release.username} is not a Releaser`); + cli.stopSpinner(`${release.username} is not a Releaser`, 'failed'); if (!argv.dryRun) { throw new Error('aborted'); }