mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +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();
|
auto rc = ::sysbeep();
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return Error::from_syscall("beep", rc);
|
return Error::from_syscall("beep"sv, -errno);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue