1
0
Fork 0
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:
Eelco Dolstra 2022-10-28 16:34:02 +02:00
parent f02da621ed
commit b275aa4475

View file

@ -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) {