From 898e12f0cf9fb50b2162c9b8279b8f675f75b285 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Feb 2012 23:00:29 +0300 Subject: Use only static error message to calling system(). --- src/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/logger.cpp b/src/logger.cpp index 1541616f2..8eba8fdb9 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -206,7 +206,7 @@ void Logger::error(const std::string &error_text) // (ConstStr255Param) msg, nullptr, nullptr); #elif defined __linux__ || __linux std::cerr << "Error: " << error_text << std::endl; - std::string msg = "xmessage \"" + error_text + "\""; + std::string msg = "xmessage \"Error happand. Please see log file for more information.\""; if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; #else -- cgit v1.2.3-60-g2f50