mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
showtrace as function arg
This commit is contained in:
parent
bc9e87412c
commit
ef24a0835d
2 changed files with 7 additions and 5 deletions
|
@ -107,10 +107,11 @@ struct ErrorInfo {
|
|||
std::list<Trace> traces;
|
||||
|
||||
static std::optional<string> programName;
|
||||
static bool showTrace;
|
||||
// static bool showTrace;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream &out, const ErrorInfo &einfo);
|
||||
// std::ostream& operator<<(std::ostream &out, const ErrorInfo &einfo);
|
||||
std::ostream& showErrorInfo(std::ostream &out, const ErrorInfo &einfo, bool showTrace);
|
||||
|
||||
/* BaseError should generally not be caught, as it has Interrupted as
|
||||
a subclass. Catch Error instead. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue