Skip to content

Commit 6b33078

Browse files
committed
fix: enhance bootstrap error message
1 parent db1bde4 commit 6b33078

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/commandkit/src/cli/build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ async function bootstrap() {
242242
}
243243
244244
await bootstrap().catch((e) => {
245-
console.error('Failed to bootstrap CommandKit application:\\n', e.stack);
245+
const error = new Error('Failed to bootstrap the application', { cause: e });
246+
console.error(error);
247+
console.error(\`Caused by \${e?.stack || e}\`);
246248
})
247249
`;
248250

0 commit comments

Comments
 (0)