[Xfce4-commits] <xfce4-mount-plugin:master> cleaned up errod dialogs with more precise, valuable, shorter messages
Fabian
noreply at xfce.org
Sun May 13 22:20:02 CEST 2012
Updating branch refs/heads/master
to 23e348007d29fb649f48563ebe09ed88233d306c (commit)
from 1756d4267f31efa0c0ec05b718ed3ab9636142d5 (commit)
commit 23e348007d29fb649f48563ebe09ed88233d306c
Author: Fabian <timystery at arcor.de>
Date: Sun May 13 21:07:22 2012 +0200
cleaned up errod dialogs with more precise, valuable, shorter messages
panel-plugin/devices.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/devices.c b/panel-plugin/devices.c
index 6de08ae..00787c7 100644
--- a/panel-plugin/devices.c
+++ b/panel-plugin/devices.c
@@ -277,8 +277,9 @@ disk_mount (t_disk *pdisk, char *on_mount_cmd, char* mount_command, gboolean eje
if (val == FALSE || exit_status != 0)
{
/* show error message if smth failed */
- xfce_dialog_show_error (NULL, error, "%s %s %d, %s %s", _("Mount Plugin: Error executing command."),
- _("Returned"), WEXITSTATUS(exit_status), _("error was"), erroutput);
+ //xfce_dialog_show_error (NULL, error, "%s %s %d, %s %s", _("Mount Plugin:\n\nError executing command."),
+ //_("Return value:"), WEXITSTATUS(exit_status), _("\nError was:"), erroutput);
+ xfce_dialog_show_error (NULL, error, "%s %s", _("Failed to mount device"), pdisk->device);
goto out;
}
@@ -293,7 +294,7 @@ disk_mount (t_disk *pdisk, char *on_mount_cmd, char* mount_command, gboolean eje
DBG("cmd: '%s', returned %d", cmd, val);
/* show error message if smth failed */
if (val == FALSE)
- xfce_dialog_show_error (NULL, error, "%s", _("Mount Plugin: Error executing on-mount command."));
+ xfce_dialog_show_error (NULL, error, "%s", _("Mount Plugin:\n\nError executing on-mount command."));
}
out:
g_free(cmd);
More information about the Xfce4-commits
mailing list