Commit 466b5cb0 authored by Max Kellermann's avatar Max Kellermann

neighbor/smbclient: FmtError() instead of FormatErrno()

parent 3f2f3251
......@@ -33,6 +33,8 @@
#include <libsmbclient.h>
#include <cerrno>
#include <cstring>
#include <utility>
class SmbclientNeighborExplorer final : public NeighborExplorer {
......@@ -165,8 +167,8 @@ ReadServers(SmbclientContext &ctx, const char *uri,
ReadServers(ctx, handle, list);
ctx.CloseDirectory(handle);
} else
FormatErrno(smbclient_domain, "smbc_opendir('%s') failed",
uri);
FmtError(smbclient_domain, "smbc_opendir('{}') failed: {}",
uri, strerror(errno));
}
[[gnu::pure]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment