mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-06 03:27:17 +03:00
boot/init: Include backtrace in exception failure
This commit is contained in:
parent
45802604c9
commit
f3ac03097c
@ -47,6 +47,10 @@ System.failure(
|
||||
)
|
||||
|
||||
rescue => e
|
||||
msg = [
|
||||
e.inspect,
|
||||
e.backtrace.map{|line| " #{line}"}.join("\n"),
|
||||
].join("\n----------\n")
|
||||
# Then fail
|
||||
System.failure("INIT_EXCEPTION", "Uncaught Exception", e.inspect, color: "765300", status: 99)
|
||||
System.failure("INIT_EXCEPTION", "Uncaught Exception", msg, color: "765300", status: 99)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user