diff options
author | koom <noemail> | 2010-07-12 23:40:32 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-19 21:21:29 +0200 |
commit | 54bedfb27c92f8aba1f5721343cb3ee7cbfd5053 (patch) | |
tree | 2a13a543563bb0fa6969ef4c9f9d66ab4a4191d1 | |
parent | 2d584d7e8aaeacbcb1036bae5c8deca9b810fe60 (diff) | |
download | mana-client-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.tar.gz mana-client-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.tar.bz2 mana-client-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.tar.xz mana-client-54bedfb27c92f8aba1f5721343cb3ee7cbfd5053.zip |
added xmessage for linux case of error
Reviewed-by: Bertram.
-rw-r--r-- | src/log.cpp | 4 |
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 |