more reliable magick error message
This commit is contained in:
parent
08dcf29b10
commit
ca5397e1d3
@ -162,11 +162,17 @@ magick_inherit_exception( ExceptionInfo *exception, Image *image )
|
||||
void
|
||||
magick_vips_error( const char *domain, ExceptionInfo *exception )
|
||||
{
|
||||
if( exception &&
|
||||
exception->reason &&
|
||||
exception->description )
|
||||
vips_error( domain, _( "libMagick error: %s %s" ),
|
||||
exception->reason, exception->description );
|
||||
if( exception ) {
|
||||
if( exception->reason &&
|
||||
exception->description )
|
||||
vips_error( domain, _( "libMagick error: %s %s" ),
|
||||
exception->reason, exception->description );
|
||||
else if( exception->reason )
|
||||
vips_error( domain, _( "libMagick error: %s" ),
|
||||
exception->reason );
|
||||
else
|
||||
vips_error( domain, "%s", _( "libMagick error:" ) );
|
||||
}
|
||||
}
|
||||
|
||||
static void *
|
||||
|
Loading…
Reference in New Issue
Block a user