From 2a8d290ba0fd01f524042c1524271b2bd970717d Mon Sep 17 00:00:00 2001 From: Marcus Bannerman Date: Mon, 26 Feb 2018 23:38:08 +0000 Subject: [PATCH] Fix for compilation --- src/dynamo/programs/dynapotential.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dynamo/programs/dynapotential.cpp b/src/dynamo/programs/dynapotential.cpp index ca54d6cdd..169a571d3 100644 --- a/src/dynamo/programs/dynapotential.cpp +++ b/src/dynamo/programs/dynapotential.cpp @@ -101,11 +101,9 @@ int main(int argc, char *argv[]) } catch (std::exception& cep) { - std::cout.flush(); - magnet::stream::FormattedOStream os(std::cerr, magnet::console::bold() + magnet::console::red_fg() + "Main(): " + magnet::console::reset()); - os << cep.what() << std::endl; + std::cout << cep.what() << std::endl; #ifndef DYNAMO_DEBUG - os << "Try using the debugging executable for more information on the error." << std::endl; + std::cout << "Try using the debugging executable for more information on the error." << std::endl; #endif return 1; }