mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
AK: Fix error is_errno
Previously the check for is_errno did not check if the error kind was syscall, which also set errno so that behavior was incorrect.
This commit is contained in:
parent
29ac95a3e2
commit
7cccdb3bcf
Notes:
github-actions[bot]
2025-05-10 15:26:15 +00:00
Author: https://github.com/R-Goc
Commit: 7cccdb3bcf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4683
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ public:
|
||||||
int code() const { return m_code; }
|
int code() const { return m_code; }
|
||||||
bool is_errno() const
|
bool is_errno() const
|
||||||
{
|
{
|
||||||
return m_kind == Kind::Errno;
|
return m_kind == Kind::Errno || m_kind == Kind::Syscall;
|
||||||
}
|
}
|
||||||
bool is_syscall() const
|
bool is_syscall() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue