Quoting Sven Neumann <s...@gimp.org>:
> Perhaps we need to add gimp-layear-has-mask then. Until then you could
> use gimp-plugin-set-pdb-error-handler to take over the error handling in
> order to suppress the warning.
I haven't been following this discussion that closely; however, I
would point out that the PDB function 'gimp-layer-get-mask' will
return "-1" if the layer does not have a mask.
Gimp-developer mailing list