From 4abcbc7a2ee68f32d5381079e341f63c66cf55ca Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 24 Apr 2021 18:23:27 +0100 Subject: [PATCH] try to improve the error message --- libvips/colour/icc_transform.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libvips/colour/icc_transform.c b/libvips/colour/icc_transform.c index 9d6e4cb8..f934b41c 100644 --- a/libvips/colour/icc_transform.c +++ b/libvips/colour/icc_transform.c @@ -611,6 +611,8 @@ vips_image_expected_sig( VipsImage *image ) /* Load a profile from a blob and check compatibility with image, intent and * direction. + * + * Don't set any errors since this is used to test compatibility. */ static cmsHPROFILE vips_icc_load_profile_blob( VipsBlob *blob, @@ -742,7 +744,8 @@ vips_icc_set_import( VipsIcc *icc, } if( !icc->in_profile ) { - vips_error( class->nickname, "%s", _( "no input profile" ) ); + vips_error( class->nickname, "%s", _( "unable to load or " + "find any compatible input profile" ) ); return( -1 ); }