diff --git a/src/core/path.c b/src/core/path.c index 5e4f6d5b6..538c1eaeb 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -95,7 +95,8 @@ int path_spec_watch(PathSpec *s, Unit *u) { break; } - log_warning("Failed to add watch on %s: %m", s->path); + log_warning("Failed to add watch on %s: %s", s->path, + errno == ENOSPC ? "too many watches" : strerror(-r)); r = -errno; if (cut) *cut = tmp;