summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-21 23:23:00 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-02-21 23:23:00 +0000
commit37ac254476b223e4be8b36bacdab8bc9626ad67a (patch)
tree000d2e99a83a0889012a7d0f36add5226d4b1e26 /src/gui/gui.cpp
parent2c1e35d6a3b1450c13694bdca6539c285384af6f (diff)
downloadmana-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.cpp8
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);