From 5bccf4951927c3752ca20a4ba055e0bce7f16d2f Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Sat, 23 Nov 2024 17:15:15 +0100 Subject: [PATCH] Better error message for heif_suberror_No_matching_decoder_installed when plugins are disabled (#1250) --- libheif/error.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libheif/error.cc b/libheif/error.cc index 722334d4a4..a8dccd6891 100644 --- a/libheif/error.cc +++ b/libheif/error.cc @@ -258,7 +258,11 @@ const char* Error::get_error_string(heif_suberror_code err) case heif_suberror_Cannot_read_plugin_directory: return "Error while scanning the directory for plugins"; case heif_suberror_No_matching_decoder_installed: +#if ENABLE_PLUGIN_LOADING return "No decoding plugin installed for this compression format"; +#else + return "Support for this compression format has not been built in"; +#endif } assert(false);