Skip to content

Commit 0356b31

Browse files
committed
fix: ensure failures to load denali result in error exit code
1 parent 3c815e6 commit 0356b31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/denali.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ if (!pkgPath) {
5757
process.chdir(pkgDir);
5858
require(path.join(localCliDir, 'dist', 'lib', 'bootstrap')).default(pkg);
5959
} catch (error) {
60-
console.error('Error encountered while starting up denali-cli:');
61-
console.error(error.stack);
60+
throw new NestedError('Error encountered while starting up denali-cli', error);
6261
}
6362
} catch (e) {
6463
loadGlobalCli();

0 commit comments

Comments
 (0)