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:
parent
69f054616d
commit
24efc74318
1 changed files with 1 additions and 1 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue