diff options
-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 |