fixed exit code to reflect completion/halting of plan
parent
109d227166
commit
50478d58ed
|
@ -43,11 +43,15 @@ int main( )
|
||||||
|
|
||||||
std::cout << "Ready to execute all tasks in Plan." << std::endl;
|
std::cout << "Ready to execute all tasks in Plan." << std::endl;
|
||||||
|
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
plan.execute( verbose );
|
plan.execute( verbose );
|
||||||
}
|
}
|
||||||
catch ( std::exception& e) {
|
|
||||||
|
catch ( std::exception& e)
|
||||||
|
{
|
||||||
std::cerr << e.what() << std::endl;
|
std::cerr << e.what() << std::endl;
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue