mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
move showTrace to new loggerSettings
This commit is contained in:
parent
5ae498872a
commit
bf2788e4c1
10 changed files with 35 additions and 57 deletions
|
@ -323,9 +323,8 @@ int handleExceptions(const string & programName, std::function<void()> fun)
|
|||
printError("Try '%1% --help' for more information.", programName);
|
||||
return 1;
|
||||
} catch (BaseError & e) {
|
||||
logger->setShowTrace(settings.showTrace);
|
||||
logError(e.info());
|
||||
if (e.hasTrace() && !settings.showTrace)
|
||||
if (e.hasTrace() && !loggerSettings.showTrace.get())
|
||||
printError("(use '--show-trace' to show detailed location information)");
|
||||
return e.status;
|
||||
} catch (std::bad_alloc & e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue