summaryrefslogtreecommitdiff
path: root/src/nautilus-window-slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r--src/nautilus-window-slot.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 0310a3be0..0ae084795 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -1583,6 +1583,7 @@ nautilus_window_slot_display_view_selection_failure (NautilusWindow *window,
char *error_message;
char *detail_message;
char *scheme_string;
+ char *file_path;
/* Some sort of failure occurred. How 'bout we tell the user? */
@@ -1605,7 +1606,17 @@ nautilus_window_slot_display_view_selection_failure (NautilusWindow *window,
{
case G_IO_ERROR_NOT_FOUND:
{
- detail_message = g_strdup (_("Unable to find the requested file. Please check the spelling and try again."));
+ file_path = g_file_get_path (location);
+ if (file_path != NULL)
+ {
+ detail_message = g_strdup_printf (_("Unable to find ā€œ%sā€. Please check the spelling and try again."),
+ file_path);
+ }
+ else
+ {
+ detail_message = g_strdup (_("Unable to find the requested file. Please check the spelling and try again."));
+ }
+ g_free (file_path);
}
break;