summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-01-22 12:38:55 +0200
committerLinus Groh <mail@linusgroh.de>2022-01-23 00:40:54 +0000
commit24efc74318628ecc189954263356fbede88c9e2d (patch)
tree99f7fc6a31e7655e331aeab7d13f57d8191ab11b
parent69f054616d3c5bbcf8c4d3ba4546ee5ec0b82c36 (diff)
downloadserenity-24efc74318628ecc189954263356fbede88c9e2d.zip
LibCore: Print the actual errno if sysbeep failed
-rw-r--r--Userland/Libraries/LibCore/System.cpp2
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 {};
}