app: don't g_assert_not_reached on GIMP_PDB_FAILED errors

calling in a script (gimp-file-load-layer 1 image "notexists.bmp")
used to crash GIMP with the following message:

**
Gimp-PDB:ERROR:gimpprocedure.c:491:gimp_procedure_get_return_values:
code should not be reached
gimp-2.7: terminated: Aborted
This commit is contained in:
Massimo Valentini 2012-03-05 18:36:03 +01:00
parent 0c236cbc48
commit 1658460523
1 changed files with 1 additions and 0 deletions

View File

@ -476,6 +476,7 @@ gimp_procedure_get_return_values (GimpProcedure *procedure,
{
switch ((GimpPdbErrorCode) error->code)
{
case GIMP_PDB_FAILED:
case GIMP_PDB_PROCEDURE_NOT_FOUND:
case GIMP_PDB_INVALID_ARGUMENT:
case GIMP_PDB_INVALID_RETURN_VALUE: