mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 07:22:43 +01:00
libutil: Try to call std::terminate for panic
We now have a terminate handler that prints a stack trace, which is useful to have when encountering an unreachable.
This commit is contained in:
parent
731349639f
commit
1f607b5def
2 changed files with 4 additions and 4 deletions
|
|
@ -436,7 +436,7 @@ void panic(std::string_view msg)
|
|||
writeErr("\n\n" ANSI_RED "terminating due to unexpected unrecoverable internal error: " ANSI_NORMAL);
|
||||
writeErr(msg);
|
||||
writeErr("\n");
|
||||
abort();
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
void panic(const char * file, int line, const char * func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue