summaryrefslogtreecommitdiff
path: root/src/log.cpp
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 21:21:29 +0200
commit54bedfb27c92f8aba1f5721343cb3ee7cbfd5053 (patch)
tree2a13a543563bb0fa6969ef4c9f9d66ab4a4191d1 /src/log.cpp
parent2d584d7e8aaeacbcb1036bae5c8deca9b810fe60 (diff)
downloadmana-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.tar.gz
mana-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.tar.bz2
mana-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.tar.xz
mana-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.zip
added xmessage for linux case of error
Reviewed-by: Bertram.
Diffstat (limited to 'src/log.cpp')
-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