[gimp] app: better error reporting in gimp_pdb_dialog_run_callback()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: better error reporting in gimp_pdb_dialog_run_callback()
- Date: Sat, 3 Aug 2019 15:30:24 +0000 (UTC)
commit 910828bf514fd93cc319667a4b97fabc7e2f73b3
Author: Michael Natterer <mitch gimp org>
Date: Sat Aug 3 17:29:34 2019 +0200
app: better error reporting in gimp_pdb_dialog_run_callback()
Display the error returned from trying to run the temp procedure.
app/widgets/gimppdbdialog.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/app/widgets/gimppdbdialog.c b/app/widgets/gimppdbdialog.c
index a9bdd45f3c..3e78162f32 100644
--- a/app/widgets/gimppdbdialog.c
+++ b/app/widgets/gimppdbdialog.c
@@ -274,12 +274,18 @@ gimp_pdb_dialog_run_callback (GimpPdbDialog *dialog,
if (g_value_get_enum (gimp_value_array_index (return_vals, 0)) !=
GIMP_PDB_SUCCESS)
{
+ const gchar *message;
+
+ if (error && error->message)
+ message = error->message;
+ else
+ message = _("The corresponding plug-in may have crashed.");
+
gimp_message (dialog->context->gimp, G_OBJECT (dialog),
GIMP_MESSAGE_ERROR,
- _("Unable to run %s callback. "
- "The corresponding plug-in may have "
- "crashed."),
- g_type_name (G_TYPE_FROM_INSTANCE (dialog)));
+ _("Unable to run %s callback.\n%s"),
+ g_type_name (G_TYPE_FROM_INSTANCE (dialog)),
+ message);
}
else if (error)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]