*: let libfmt quote strings
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user