sleep: add mising error message

This commit is contained in:
Lennart Poettering
2024-01-30 11:31:36 +01:00
parent 17f3e91e81
commit 032bf2da46
+1 -1
View File
@@ -233,7 +233,7 @@ static int execute(
/* This file is opened first, so that if we hit an error, we can abort before modifying any state. */
state_fd = open("/sys/power/state", O_WRONLY|O_CLOEXEC);
if (state_fd < 0)
return -errno;
return log_error_errno(errno, "Failed to open /sys/power/state: %m");
/* Configure hibernation settings if we are supposed to hibernate */
if (sleep_operation_is_hibernation(operation)) {