Skip to content

Commit

Permalink
Fix for compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
toastedcrumpets committed Feb 26, 2018
1 parent 866e5a2 commit 2a8d290
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dynamo/programs/dynapotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2a8d290

Please sign in to comment.