Include invalid font path in the error message

pull/3090/head
Isaac Connor 2020-12-03 13:35:12 -05:00
parent 7ef34bce7b
commit cfd4c17953
1 changed files with 3 additions and 3 deletions

View File

@ -493,7 +493,7 @@ void Image::Initialise() {
int res = font.ReadFontFile(config.font_file_location);
if ( res == -1 ) {
Panic("Invalid font location.");
Panic("Invalid font location: %s", config.font_file_location);
} else if ( res == -2 || res == -3 || res == -4 ) {
Panic("Invalid font file.");
}