[gedit/wip/misc] io-error-info-bar: put original error message in details in one case
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/misc] io-error-info-bar: put original error message in details in one case
- Date: Thu, 21 Jul 2022 16:24:28 +0000 (UTC)
commit a00c6b08686995494d23b921804f187e029d4a16
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date: Thu Jul 21 18:20:04 2022 +0200
io-error-info-bar: put original error message in details in one case
This parse_gio_error() function needs to be re-read and probably
re-worked a bit, to have more useful / fix error messages displayed in
the infobar.
In this case, it's for G_IO_ERROR_NOT_FOUND and G_IO_ERROR_NOT_DIRECTORY
cases only.
Especially useful for the open recent menu.
gedit/gedit-io-error-info-bar.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gedit/gedit-io-error-info-bar.c b/gedit/gedit-io-error-info-bar.c
index f31bfe881..bf40ba3c4 100644
--- a/gedit/gedit-io-error-info-bar.c
+++ b/gedit/gedit-io-error-info-bar.c
@@ -156,8 +156,7 @@ parse_gio_error (const GError *error,
case G_IO_ERROR_NOT_DIRECTORY:
*error_message = g_strdup_printf (_("Could not find the file “%s”."),
uri_for_display);
- *message_details = g_strdup (_("Please check that you typed the "
- "location correctly and try again."));
+ *message_details = g_strdup (error->message);
break;
case G_IO_ERROR_NOT_SUPPORTED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]