mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
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>
This commit is contained in:
parent
62a648953b
commit
571185f0f6
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user