From cfd4c17953f660621fc84d51d6ef6f07c836caa5 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 3 Dec 2020 13:35:12 -0500 Subject: [PATCH] Include invalid font path in the error message --- src/zm_image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zm_image.cpp b/src/zm_image.cpp index 0a74d19c8..f40fdf527 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -492,9 +492,9 @@ void Image::Initialise() { b_u_table = b_u_table_global; int res = font.ReadFontFile(config.font_file_location); - if( res == -1 ) { - Panic("Invalid font location."); - } else if( res == -2 || res == -3 || res == -4 ) { + if ( res == -1 ) { + Panic("Invalid font location: %s", config.font_file_location); + } else if ( res == -2 || res == -3 || res == -4 ) { Panic("Invalid font file."); } initialised = true;