diff options
author | Liav A <liavalb@gmail.com> | 2022-01-22 12:38:55 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-23 00:40:54 +0000 |
commit | 24efc74318628ecc189954263356fbede88c9e2d (patch) | |
tree | 99f7fc6a31e7655e331aeab7d13f57d8191ab11b /Userland/Libraries/LibCore/System.cpp | |
parent | 69f054616d3c5bbcf8c4d3ba4546ee5ec0b82c36 (diff) | |
download | serenity-24efc74318628ecc189954263356fbede88c9e2d.zip |
LibCore: Print the actual errno if sysbeep failed
Diffstat (limited to 'Userland/Libraries/LibCore/System.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 68f0b36ccc..7b942b094d 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -46,7 +46,7 @@ ErrorOr<void> beep() { auto rc = ::sysbeep(); if (rc < 0) - return Error::from_syscall("beep", rc); + return Error::from_syscall("beep"sv, -errno); return {}; } |