core: Use g_io_error_from_errno() to ensure we have more useful error codes
This commit is contained in:
parent
7fc625c967
commit
c7235182a4
|
|
@ -233,7 +233,7 @@ ot_util_set_error_from_errno (GError **error,
|
|||
{
|
||||
g_set_error_literal (error,
|
||||
G_IO_ERROR,
|
||||
0,
|
||||
g_io_error_from_errno (saved_errno),
|
||||
g_strerror (saved_errno));
|
||||
errno = saved_errno;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue