From 9cfbc56bfa4cf5c2162c34f8e1e42edddec28810 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Tue, 21 Apr 2015 18:28:37 +0200 Subject: [PATCH] If font fails to open, log path tried --- src/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font.cpp b/src/font.cpp index 31bb273..9dcebdf 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -34,7 +34,7 @@ Font::Font(const std::string &path, unsigned int size) font = TTF_OpenFont(path.c_str(), size); if (!font) { - ERROR("Unable to open font\n"); + ERROR("Unable to open font '%s'\n", TTF_FONT); TTF_Quit(); return; }