mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
gio-tool: Use print_file_error correctly
Use print_file_error where an error relates to that file and vice versa. https://bugzilla.gnome.org/show_bug.cgi?id=786463
This commit is contained in:
parent
78fa67e70c
commit
087525b62b
@ -84,7 +84,7 @@ cat (GFile *file)
|
||||
|
||||
if (written == -1 && errsv != EINTR)
|
||||
{
|
||||
print_file_error (file, _("Error writing to stdout"));
|
||||
print_error ("%s", _("Error writing to stdout"));
|
||||
success = FALSE;
|
||||
goto out;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ save (GFile *file)
|
||||
if (error != NULL)
|
||||
{
|
||||
save_res = FALSE;
|
||||
print_error ("%", error->message);
|
||||
print_file_error (file, error->message);
|
||||
g_clear_error (&error);
|
||||
goto out;
|
||||
}
|
||||
@ -123,7 +123,7 @@ save (GFile *file)
|
||||
if (!close_res)
|
||||
{
|
||||
save_res = FALSE;
|
||||
print_error ("%s", error->message);
|
||||
print_file_error (file, error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user