Suppress error message when CLI is quitting

This commit is contained in:
abitmore 2019-05-08 03:51:40 -04:00
parent ed3f1c86dd
commit 382970bfa4

View file

@ -140,8 +140,6 @@ void cli::run()
} }
catch ( const fc::exception& e ) catch ( const fc::exception& e )
{ {
std::cout << e.to_detail_string() << "\n";
if (e.code() == fc::canceled_exception_code) if (e.code() == fc::canceled_exception_code)
{ {
if( _getline_thread ) if( _getline_thread )
@ -151,6 +149,7 @@ void cli::run()
} }
break; break;
} }
std::cout << e.to_detail_string() << "\n";
} }
} }
} }