BAN: Use strerrordesc_np instead of strerror
This commit is contained in:
parent
b56fa4a29d
commit
5ad4340679
|
@ -62,7 +62,9 @@ namespace BAN
|
||||||
if (m_error_code & kernel_error_mask)
|
if (m_error_code & kernel_error_mask)
|
||||||
return Kernel::error_string(kernel_error());
|
return Kernel::error_string(kernel_error());
|
||||||
#endif
|
#endif
|
||||||
return strerror(m_error_code);
|
if (auto* desc = strerrordesc_np(m_error_code))
|
||||||
|
return desc;
|
||||||
|
return "Unknown error"sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue