diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-02-21 23:23:00 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-02-21 23:23:00 +0000 |
commit | 37ac254476b223e4be8b36bacdab8bc9626ad67a (patch) | |
tree | 000d2e99a83a0889012a7d0f36add5226d4b1e26 /src/gui/gui.cpp | |
parent | 2c1e35d6a3b1450c13694bdca6539c285384af6f (diff) | |
download | mana-37ac254476b223e4be8b36bacdab8bc9626ad67a.tar.gz mana-37ac254476b223e4be8b36bacdab8bc9626ad67a.tar.bz2 mana-37ac254476b223e4be8b36bacdab8bc9626ad67a.tar.xz mana-37ac254476b223e4be8b36bacdab8bc9626ad67a.zip |
Showing a visible error message to the user when the font file fails to load.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 12936807..8f5ffd50 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -109,9 +109,7 @@ Gui::Gui(Graphics *graphics): } catch (gcn::Exception e) { - logger->log("Unable to load dejavusans.ttf: %s", - e.getMessage().c_str()); - throw; + logger->error(std::string("Unable to load dejavusans.ttf: ") + e.getMessage()); } // Set speech font @@ -122,9 +120,7 @@ Gui::Gui(Graphics *graphics): } catch (gcn::Exception e) { - logger->log("Unable to load dejavusans.ttf: %s", - e.getMessage().c_str()); - throw; + logger->error(std::string("Unable to load dejavusans.ttf: ") + e.getMessage()); } gcn::Widget::setGlobalFont(mGuiFont); |