mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
fix compile errors
This commit is contained in:
parent
4daccb279c
commit
19694aa213
3 changed files with 19 additions and 15 deletions
|
|
@ -88,20 +88,8 @@ protected:
|
|||
mutable ErrorInfo err;
|
||||
|
||||
mutable std::optional<string> what_;
|
||||
const string& calcWhat() const
|
||||
{
|
||||
if (what_.has_value())
|
||||
return *what_;
|
||||
else {
|
||||
err.name = sname();
|
||||
|
||||
std::ostringstream oss;
|
||||
oss << err;
|
||||
what_ = oss.str();
|
||||
|
||||
return *what_;
|
||||
}
|
||||
}
|
||||
const string& calcWhat() const;
|
||||
|
||||
public:
|
||||
unsigned int status = 1; // exit status
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue