Skip to content

Commit 879fd65

Browse files
author
ando
authored
Merge pull request #22 from iamando/develop
feature: change to stderr cmd error from execa
2 parents a61d6b9 + f4d4d26 commit 879fd65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/commiter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export const commiter = async () => {
5858
return
5959
}
6060

61-
const { stderr } = await execa(cmd)
61+
const { stderr: stderrCmd } = await execa(cmd)
6262

63-
if (stderr) throw new CliError(`An error occured: ${stderr}`)
63+
if (stderrCmd) throw new CliError(`An error occured: ${stderrCmd}`)
6464

6565
outro("You're all set!")
6666
} catch (err: any) {

0 commit comments

Comments
 (0)