From 70a954461ed14150f6e78cfa85042c37b496c07d Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 5 Dec 2009 11:30:02 +0000 Subject: [PATCH] Improve error reporting --- sdl_ttf_font.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};