1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

LibCore: Print the actual errno if sysbeep failed

This commit is contained in:
Liav A 2022-01-22 12:38:55 +02:00 committed by Linus Groh
parent 69f054616d
commit 24efc74318

View file

@ -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 {};
}