Skip to content

Commit deaf52c

Browse files
committed
fixed process exit codes
1 parent a08b6aa commit deaf52c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if (!argv.argv.token) {
3636
"\nPlease pass your gitlab personal access token. Check README.md to how grab it. \n"
3737
)
3838
);
39-
process.exit(0);
39+
process.exit(1);
4040
}
4141

4242
/**
@@ -140,14 +140,14 @@ function main() {
140140
})
141141
.catch((err) => {
142142
console.log(`\n ${chalk.red(err.message)}`);
143-
process.exit(0);
143+
process.exit(1);
144144
});
145145
}
146146
})
147147
.catch((err) => {
148148
console.log(`\n${chalk.red(err.message)} \n`);
149149
console.log(`\n${chalk.red(`trace: ${err.stack}`)} \n`);
150-
process.exit(0);
150+
process.exit(1);
151151
});
152152
}
153153

0 commit comments

Comments
 (0)