Skip to content

Commit

Permalink
fix: exit with error code
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Jun 5, 2019
1 parent cd965d0 commit 06e586a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ program
const hex = palette[color].getHex();
console.log(chalk.hex(hex).bold(color), hex);
}
} catch (e) {
} catch (error) {
spinner.stop();

console.error(e.toString());

process.exit();
console.error(error.toString());
process.exit(1);
}
});

Expand Down

0 comments on commit 06e586a

Please sign in to comment.