diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-30 11:14:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-30 11:31:36 +0100 |
commit | 032bf2da46748e2c05ac154b46490c60f08bd6da (patch) | |
tree | 7f3fbd17ce5c29ce299cfb66de1598f7e4e7049a /src/sleep/sleep.c | |
parent | Merge pull request #31106 from poettering/bus-creds-pidref (diff) | |
download | systemd-032bf2da46748e2c05ac154b46490c60f08bd6da.tar.xz systemd-032bf2da46748e2c05ac154b46490c60f08bd6da.zip |
sleep: add mising error message
Diffstat (limited to 'src/sleep/sleep.c')
-rw-r--r-- | src/sleep/sleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c index 31dca446f2..6864f631f1 100644 --- a/src/sleep/sleep.c +++ b/src/sleep/sleep.c @@ -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)) { |