chiark / gitweb /
logger: fix error handling
[elogind.git] / src / logger.c
index 9c3cb1a..32c57f8 100644 (file)
@@ -318,7 +318,7 @@ static int stream_process(Stream *s, usec_t ts) {
                         return 0;
 
                 log_warning("Failed to read from stream: %m");
-                return -1;
+                return -errno;
         }