1
0
Fork 0
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:
Ben Burdette 2020-06-27 12:19:31 -06:00
parent bc9e87412c
commit ef24a0835d
2 changed files with 7 additions and 5 deletions

View file

@ -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. */