better pngsave error message
add a target name to png's "unable to write to target" message see https://github.com/libvips/libvips/issues/1578
This commit is contained in:
parent
d203a3fb89
commit
70c0b36d4f
@ -1205,8 +1205,8 @@ vips__png_write_target( VipsImage *in, VipsTarget *target,
|
|||||||
compression, interlace, profile, filter, strip, palette,
|
compression, interlace, profile, filter, strip, palette,
|
||||||
Q, dither, bitdepth ) ) {
|
Q, dither, bitdepth ) ) {
|
||||||
write_finish( write );
|
write_finish( write );
|
||||||
vips_error( "vips2png",
|
vips_error( "vips2png", _( "unable to write to target %s" ),
|
||||||
"%s", _( "unable to write to target" ) );
|
vips_connection_nick( VIPS_CONNECTION( target ) ) );
|
||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user