mirror of
https://github.com/NixOS/nix
synced 2025-07-01 08:28:00 +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
|
@ -105,14 +105,6 @@ public:
|
|||
|
||||
Verbosity verbosity = lvlInfo;
|
||||
|
||||
void warnOnce(bool & haveWarned, const FormatOrString & fs)
|
||||
{
|
||||
if (!haveWarned) {
|
||||
warn(fs.s);
|
||||
haveWarned = true;
|
||||
}
|
||||
}
|
||||
|
||||
void writeToStderr(std::string_view s)
|
||||
{
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue