From 50478d58ed42ac21aa7b5978139b54fa4d10660d Mon Sep 17 00:00:00 2001 From: Phanes Date: Tue, 5 Dec 2017 01:13:23 -0500 Subject: [PATCH] fixed exit code to reflect completion/halting of plan --- examplar.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examplar.cpp b/examplar.cpp index 5221bda..51045c9 100644 --- a/examplar.cpp +++ b/examplar.cpp @@ -43,11 +43,15 @@ int main( ) std::cout << "Ready to execute all tasks in Plan." << std::endl; - try { + try + { plan.execute( verbose ); } - catch ( std::exception& e) { + + catch ( std::exception& e) + { std::cerr << e.what() << std::endl; + return 1; } return 0;