get_last_error


Description:

[ Version ( since = "3.0" ) ]
public unowned string get_last_error ()

Retrieves the error message from the last procedure call.

If a procedure call fails, then it might pass an error message with the return values. Plug-ins that are using the libgimp C wrappers don't access the procedure return values directly. Thus PDB stores the error message and makes it available with this function. The next procedure call unsets the error message again.

The returned string is owned by this and must not be freed or modified.

Parameters:

this

a PDB.

Returns:

the error message