Commit 087525b6 authored by Ondrej Holy's avatar Ondrej Holy

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
parent 78fa67e7
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment