1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 11:41:15 +02:00

Remove unused Error.name field

This commit is contained in:
Eelco Dolstra 2022-04-06 13:02:26 +02:00
parent 8b1e328d5d
commit 168ef9f3ab
4 changed files with 2 additions and 8 deletions

View file

@ -21,12 +21,9 @@ const std::string & BaseError::calcWhat() const
if (what_.has_value())
return *what_;
else {
err.name = sname();
std::ostringstream oss;
showErrorInfo(oss, err, loggerSettings.showTrace);
what_ = oss.str();
return *what_;
}
}