mirror of
https://github.com/NixOS/nix
synced 2025-06-29 19:03:16 +02:00
Don't use warnOnce() for the toString warning
This commit is contained in:
parent
f02da621ed
commit
b275aa4475
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@ SourcePath EvalState::decodePath(std::string_view s, PosIdx pos)
|
|||
|
||||
SourcePath path {accessor->second, CanonPath(s)};
|
||||
|
||||
static bool warned = false;
|
||||
warnOnce(warned, "applying 'toString' to path '%s' and then accessing it is deprecated, at %s", path, positions[pos]);
|
||||
warn("applying 'toString' to path '%s' and then accessing it is deprecated, at %s", path, positions[pos]);
|
||||
|
||||
return path;
|
||||
} catch (std::invalid_argument & e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue