io, net, evnet: quote file names in error messages

This commit is contained in:
Max Kellermann
2024-04-05 14:21:24 +02:00
committed by Max Kellermann
parent b3a31b69ee
commit 1e4bf90c60
3 changed files with 10 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ InotifyEvent::AddWatch(const char *pathname, uint32_t mask)
{
int wd = TryAddWatch(pathname, mask);
if (wd < 0)
throw FmtErrno("inotify_add_watch('{}') failed", pathname);
throw FmtErrno("inotify_add_watch({:?}) failed", pathname);
return wd;
}