[glib] bgo#640212 - Replace "error stating file" with friendlier messages
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] bgo#640212 - Replace "error stating file" with friendlier messages
- Date: Thu, 8 Sep 2011 14:12:50 +0000 (UTC)
commit 571185f0f6054c8bdb0927809c0b08c6fd86b012
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 8 09:11:56 2011 -0500
bgo#640212 - Replace "error stating file" with friendlier messages
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 | 2 +-
gio/glocalfileinfo.c | 4 ++--
gio/glocalfileoutputstream.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index e1b33cf..4729208 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -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);
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 6c1fe20..c12d133 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -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;
}
diff --git a/gio/glocalfileoutputstream.c b/gio/glocalfileoutputstream.c
index 650550e..aff270c 100644
--- a/gio/glocalfileoutputstream.c
+++ b/gio/glocalfileoutputstream.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]