mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibCore: Print the actual errno if sysbeep failed
This commit is contained in:
parent
69f054616d
commit
24efc74318
Notes:
sideshowbarker
2024-07-17 20:24:53 +09:00
Author: https://github.com/supercomputer7
Commit: 24efc74318
Pull-request: https://github.com/SerenityOS/serenity/pull/12069
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