]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/cgtop/cgtop.c
continue work with error messages, log_oom()
[thirdparty/systemd.git] / src / cgtop / cgtop.c
index a57a468b2cb194df0aba90a17575e07f6e886fde..3756328fa7b7df80b93dd2cac249efb597c7712d 100644 (file)
@@ -782,5 +782,10 @@ finish:
         group_hashmap_free(a);
         group_hashmap_free(b);
 
-        return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
+        if (r < 0) {
+                log_error("Exiting with failure: %s", strerror(-r));
+                return EXIT_FAILURE;
+        }
+
+        return EXIT_SUCCESS;
 }