diff --git a/sdl_ttf_font.hh b/sdl_ttf_font.hh index a7ce83b..f1c0820 100644 --- a/sdl_ttf_font.hh +++ b/sdl_ttf_font.hh @@ -47,7 +47,7 @@ public: SDL_Rect dst; p = TTF_RenderText_Blended(this->font, msg, this->clr); - panic_if(!p, "%s\n", TTF_GetError()); + panic_if(!p, "TTF error for %s: %s\n", msg, TTF_GetError()); dst = (SDL_Rect){x, y, w, h};