mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-31 23:46:48 +02:00
Merge pull request #10361 from obsidiansystems/fix-exception-type
`throwExceptionSelfCheck` throw `Error`
This commit is contained in:
commit
eeecbb9c36
1 changed files with 3 additions and 2 deletions
|
@ -16,9 +16,10 @@ void BaseError::addTrace(std::shared_ptr<Pos> && e, HintFmt hint, TracePrint pri
|
||||||
err.traces.push_front(Trace { .pos = std::move(e), .hint = hint, .print = print });
|
err.traces.push_front(Trace { .pos = std::move(e), .hint = hint, .print = print });
|
||||||
}
|
}
|
||||||
|
|
||||||
void throwExceptionSelfCheck(){
|
void throwExceptionSelfCheck()
|
||||||
|
{
|
||||||
// This is meant to be caught in initLibUtil()
|
// This is meant to be caught in initLibUtil()
|
||||||
throw SysError("C++ exception handling is broken. This would appear to be a problem with the way Nix was compiled and/or linked and/or loaded.");
|
throw Error("C++ exception handling is broken. This would appear to be a problem with the way Nix was compiled and/or linked and/or loaded.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// c++ std::exception descendants must have a 'const char* what()' function.
|
// c++ std::exception descendants must have a 'const char* what()' function.
|
||||||
|
|
Loading…
Reference in a new issue