aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.cc
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-09-26 17:06:01 +0000
committerGerrit Code Review <gerrit@localhost>2024-09-26 17:06:01 +0000
commitb6038e988d989f3306e1c7cce8796a685cd8b0d0 (patch)
tree9e8a09281a0e442a2c7b1a179357dbcc411e1346 /src/libstore/globals.cc
parentca9256a789b413b71f424405c8a0d7d37ca36696 (diff)
parent19e0ce2c03d8e0baa16998b086665664c420c1df (diff)
Merge "main: log stack traces for std::terminate" into main
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r--src/libstore/globals.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index ffc2543ef..f43b759d2 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -443,7 +443,7 @@ static bool initLibStoreDone = false;
void assertLibStoreInitialized() {
if (!initLibStoreDone) {
printError("The program must call nix::initNix() before calling any libstore library functions.");
- abort();
+ std::terminate();
};
}