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:
John Cupitt 2020-07-23 15:26:11 +01:00
parent d203a3fb89
commit 70c0b36d4f
1 changed files with 2 additions and 2 deletions

View File

@ -1205,8 +1205,8 @@ vips__png_write_target( VipsImage *in, VipsTarget *target,
compression, interlace, profile, filter, strip, palette,
Q, dither, bitdepth ) ) {
write_finish( write );
vips_error( "vips2png",
"%s", _( "unable to write to target" ) );
vips_error( "vips2png", _( "unable to write to target %s" ),
vips_connection_nick( VIPS_CONNECTION( target ) ) );
return( -1 );
}