Skip to content

Commit

Permalink
fix: ensure to clean progress on error exit
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 9, 2018
1 parent d25999e commit 51c75ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = async (packageName, inputOptions) => {
try {
await installPromise;
} catch (error) {
cliFooter.updateProgress();
if (error instanceof DevPackageError) {
process.stdout.write(`\n${ clc.red(error.message) }\n`);
process.exit(1);
Expand Down

0 comments on commit 51c75ed

Please sign in to comment.