mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
re-enable --show-trace check
This commit is contained in:
parent
023912def3
commit
6359d71d6b
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue