mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
warnOnce(): Fix boost exception when the message contains a format character
This commit is contained in:
parent
cbade16f9e
commit
241dd5481e
3 changed files with 6 additions and 10 deletions
|
@ -52,7 +52,7 @@ SourcePath EvalState::decodePath(std::string_view s, PosIdx pos)
|
|||
SourcePath path {accessor->second, CanonPath(s)};
|
||||
|
||||
static bool warned = false;
|
||||
warnOnce(warned, fmt("applying 'toString' to path '%s' and then accessing it is deprecated, at %s", path, positions[pos]));
|
||||
warnOnce(warned, "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