BAN: Use strerrordesc_np instead of strerror

This commit is contained in:
Bananymous 2024-02-14 14:58:27 +02:00
parent b56fa4a29d
commit 5ad4340679
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ namespace BAN
if (m_error_code & kernel_error_mask)
return Kernel::error_string(kernel_error());
#endif
return strerror(m_error_code);
if (auto* desc = strerrordesc_np(m_error_code))
return desc;
return "Unknown error"sv;
}
private: