fixed exit code to reflect completion/halting of plan

master
Phanes 2017-12-05 01:13:23 -05:00
parent 109d227166
commit 50478d58ed
1 changed files with 6 additions and 2 deletions

View File

@ -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;