From 382970bfa4d60ffd027c64b9ad37d1c545e9b977 Mon Sep 17 00:00:00 2001 From: abitmore Date: Wed, 8 May 2019 03:51:40 -0400 Subject: [PATCH] Suppress error message when CLI is quitting --- src/rpc/cli.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index fe2e462..414f399 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -140,8 +140,6 @@ void cli::run() } catch ( const fc::exception& e ) { - std::cout << e.to_detail_string() << "\n"; - if (e.code() == fc::canceled_exception_code) { if( _getline_thread ) @@ -151,6 +149,7 @@ void cli::run() } break; } + std::cout << e.to_detail_string() << "\n"; } } }