summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoom <noemail>2010-07-12 23:40:32 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-19 20:43:48 +0200
commit7b2588db55fca14bf957408af9eabb391f1c4db5 (patch)
treef504e8a4f07540360ea74f905fd7f862f71e21b2
parentec9c12e33889deb12b3a49d70005ade328e618f1 (diff)
downloadmana-7b2588db55fca14bf957408af9eabb391f1c4db5.tar.gz
mana-7b2588db55fca14bf957408af9eabb391f1c4db5.tar.bz2
mana-7b2588db55fca14bf957408af9eabb391f1c4db5.tar.xz
mana-7b2588db55fca14bf957408af9eabb391f1c4db5.zip
added xmessage for linux case of error
Reviewed-by: Bertram.
-rw-r--r--src/log.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp
index ba1610fd..d5a30bb4 100644
--- a/src/log.cpp
+++ b/src/log.cpp
@@ -123,6 +123,10 @@ void Logger::error(const std::string &error_text)
StandardAlert(kAlertStopAlert,
"\pError",
(ConstStr255Param) msg, NULL, NULL);
+#elif defined __linux__
+ std::cerr << "Error: " << error_text << std::endl;
+ std::string msg="xmessage \"" + error_text + "\"";
+ system(msg.c_str());
#else
std::cerr << "Error: " << error_text << std::endl;
#endif