mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Adjust error handling for test task.
This commit is contained in:
@@ -362,9 +362,12 @@ gulp.task('test', ['test:all'], () => {
|
|||||||
`\x1b[36mPending: ${totals[2]}\t`
|
`\x1b[36mPending: ${totals[2]}\t`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (totals[1] > 0) throw "ERROR: There are failing tests!"
|
kill(server);
|
||||||
else {
|
|
||||||
kill(server);
|
if (totals[1] > 0) {
|
||||||
|
console.error('ERROR: There are failing tests!');
|
||||||
|
process.exit(1);
|
||||||
|
} else {
|
||||||
console.log('\n\x1b[36mThanks for helping keep Habitica clean!\x1b[0m');
|
console.log('\n\x1b[36mThanks for helping keep Habitica clean!\x1b[0m');
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user