From 24efc74318628ecc189954263356fbede88c9e2d Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 22 Jan 2022 12:38:55 +0200 Subject: [PATCH] LibCore: Print the actual errno if sysbeep failed --- Userland/Libraries/LibCore/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 beep() { auto rc = ::sysbeep(); if (rc < 0) - return Error::from_syscall("beep", rc); + return Error::from_syscall("beep"sv, -errno); return {}; }