bgo#640212 - Replace "error stating file" with friendlier messages
authorFederico Mena Quintero <federico@gnome.org>
Thu, 8 Sep 2011 14:11:56 +0000 (09:11 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Thu, 8 Sep 2011 14:11:56 +0000 (09:11 -0500)
Non-technical users won't know that "stating" refers to stat(2), so we
just use "error when getting information" now.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gio/gdbusauthmechanismsha1.c
gio/glocalfileinfo.c
gio/glocalfileoutputstream.c

index e1b33cf..4729208 100644 (file)
@@ -263,7 +263,7 @@ ensure_keyring_directory (GError **error)
               g_set_error (error,
                            G_IO_ERROR,
                            g_io_error_from_errno (errno),
-                           _("Error statting directory `%s': %s"),
+                           _("Error when getting information for directory `%s': %s"),
                            path,
                            strerror (errno));
               g_free (path);
index 6c1fe20..c12d133 100644 (file)
@@ -1479,7 +1479,7 @@ _g_local_file_info_get (const char             *basename,
           g_object_unref (info);
           g_set_error (error, G_IO_ERROR,
                       g_io_error_from_errno (errsv),
-                      _("Error stating file '%s': %s"),
+                      _("Error when getting information for file '%s': %s"),
                       display_name, g_strerror (errsv));
           g_free (display_name);
           return NULL;
@@ -1765,7 +1765,7 @@ _g_local_file_info_get_from_fd (int         fd,
 
       g_set_error (error, G_IO_ERROR,
                   g_io_error_from_errno (errsv),
-                  _("Error stating file descriptor: %s"),
+                  _("Error when getting information for file descriptor: %s"),
                   g_strerror (errsv));
       return NULL;
     }
index 650550e..aff270c 100644 (file)
@@ -830,7 +830,7 @@ handle_overwrite_open (const char    *filename,
       char *display_name = g_filename_display_name (filename);
       g_set_error (error, G_IO_ERROR,
                   g_io_error_from_errno (errsv),
-                  _("Error stating file '%s': %s"),
+                  _("Error when getting information for file '%s': %s"),
                   display_name, g_strerror (errsv));
       g_free (display_name);
       goto err_out;