core: Use g_io_error_from_errno() to ensure we have more useful error codes
This commit is contained in:
1 parent
7fc625c967
commit
c7235182a4
1 file changed
+1
-1
@@ -233,7 +233,7 @@ ot_util_set_error_from_errno (GError **error,
|
|||||||
{
|
{
|
||||||
g_set_error_literal (error,
|
g_set_error_literal (error,
|
||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
0,
|
g_io_error_from_errno (saved_errno),
|
||||||
g_strerror (saved_errno));
|
g_strerror (saved_errno));
|
||||||
errno = saved_errno;
|
errno = saved_errno;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user