Skip to content

Commit 440ed33

Browse files
add stacks to boot errors
1 parent 33e2a51 commit 440ed33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/kernel/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ export class Kernel {
291291
return false;
292292
} catch (e) {
293293
console.error(e);
294-
this.panic(`init program ${init_program} error!`, e.toString());
294+
this.panic(`init program ${init_program} error!`, e.toString() + NEWLINE + e.stack);
295295
return false;
296296
}
297297
} catch (e) {
298298
console.error(e);
299-
this.panic(`Failed to start init program ${init_program}!`, e.toString());
299+
this.panic(`Failed to start init program ${init_program}!`, e.toString() + NEWLINE + e.stack);
300300
return false;
301301
}
302302

0 commit comments

Comments
 (0)