summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {};
}