mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
comments and cleanup
This commit is contained in:
parent
70bcb39d3f
commit
9159dfe3d8
9 changed files with 7 additions and 19 deletions
|
@ -111,10 +111,8 @@ struct ErrorInfo {
|
|||
std::list<Trace> traces;
|
||||
|
||||
static std::optional<string> programName;
|
||||
// static bool showTrace;
|
||||
};
|
||||
|
||||
// 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
|
||||
|
@ -122,7 +120,6 @@ std::ostream& showErrorInfo(std::ostream &out, const ErrorInfo &einfo, bool show
|
|||
class BaseError : public std::exception
|
||||
{
|
||||
protected:
|
||||
// string prefix_; // used for location traces etc.
|
||||
mutable ErrorInfo err;
|
||||
|
||||
mutable std::optional<string> what_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue