Skip to content

Commit

Permalink
fix: ensure failures to load denali result in error exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Sep 19, 2017
1 parent 3c815e6 commit 0356b31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/denali.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ if (!pkgPath) {
process.chdir(pkgDir);
require(path.join(localCliDir, 'dist', 'lib', 'bootstrap')).default(pkg);
} catch (error) {
console.error('Error encountered while starting up denali-cli:');
console.error(error.stack);
throw new NestedError('Error encountered while starting up denali-cli', error);
}
} catch (e) {
loadGlobalCli();
Expand Down

0 comments on commit 0356b31

Please sign in to comment.