*: let libfmt quote strings

This commit is contained in:
Max Kellermann
2024-04-16 11:06:34 +02:00
parent 39c9e92f42
commit 0c1ecc96a8
71 changed files with 160 additions and 160 deletions

View File

@@ -22,7 +22,7 @@ CreateNeighborExplorer(EventLoop &loop, NeighborListener &listener,
{
const NeighborPlugin *plugin = GetNeighborPluginByName(plugin_name);
if (plugin == nullptr)
throw FmtRuntimeError("No such neighbor plugin: {}",
throw FmtRuntimeError("No such neighbor plugin: {:?}",
plugin_name);
return plugin->create(loop, listener, block);
@@ -56,7 +56,7 @@ NeighborGlue::Open()
for (auto k = explorers.begin(); k != i; ++k)
k->explorer->Close();
std::throw_with_nested(FmtRuntimeError("Failed to open neighblor plugin '{}'",
std::throw_with_nested(FmtRuntimeError("Failed to open neighblor plugin {:?}",
i->name));
}
}

View File

@@ -151,7 +151,7 @@ ReadServers(SmbclientContext &ctx, const char *uri,
ReadServers(ctx, handle, list);
ctx.CloseDirectory(handle);
} else
FmtError(smbclient_domain, "smbc_opendir('{}') failed: {}",
FmtError(smbclient_domain, "smbc_opendir({:?}) failed: {}",
uri, strerror(errno));
}