mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 01:02:34 +00:00
re-enable --show-trace check
This commit is contained in:
parent
023912def3
commit
6359d71d6b
@ -328,8 +328,8 @@ int handleExceptions(const string & programName, std::function<void()> fun)
|
||||
// printError(e.prefix());
|
||||
logError(e.info());
|
||||
// TODO fix to detect non-empty trace here.
|
||||
// if (e.prefix() != "" && !settings.showTrace)
|
||||
// printError("(use '--show-trace' to show detailed location information)");
|
||||
if (e.hasTrace() && !settings.showTrace)
|
||||
printError("(use '--show-trace' to show detailed location information)");
|
||||
return e.status;
|
||||
} catch (std::bad_alloc & e) {
|
||||
printError(error + "out of memory");
|
||||
|
Loading…
Reference in New Issue
Block a user