Commit 90699199 authored by Jehan's avatar Jehan

app: output errors to stderr when gimp_procedure_execute() fails with…

… argument validation.
I had a case where argument validation was failing on range and no error
was propagated (during a crash handling). Let's not leave these errors
totally silent as it makes such usually easy issues harder to debug. In
the specific case of no GError passed, just print the error to stderr.
parent d11cbbbb
......@@ -492,6 +492,12 @@ gimp_procedure_execute (GimpProcedure *procedure,
return_vals = gimp_procedure_get_return_values (procedure, FALSE,
if (! error)
/* If we can't properly propagate the error, at least print it
* to standard error stream. This makes debugging easier.
g_printerr ("%s failed to validate arguments: %s\n", G_STRFUNC, pdb_error->message);
g_propagate_error (error, pdb_error);
return return_vals;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment