mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
glocalfile: Fix error code when trash not found
G_IO_ERROR_NOT_SUPPORTED is used as parameter for g_set_io_error(), however, errno is expected instead and thus error code is set to 0, which is wrong. Let's use ENOTSUP instead.
This commit is contained in:
parent
15cdcd2e0b
commit
1cbb5dd95f
@ -1967,7 +1967,7 @@ g_local_file_trash (GFile *file,
|
||||
{
|
||||
g_set_io_error (error,
|
||||
_("Unable to find toplevel directory to trash %s"),
|
||||
file, G_IO_ERROR_NOT_SUPPORTED);
|
||||
file, ENOTSUP);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user