Skip to content
Snippets Groups Projects
Commit afcc79f8 authored by Matthew McGill's avatar Matthew McGill
Browse files

Displays error if arg parsing fails

Former-commit-id: dfdc4b136b20a82e39a1c3f3d6c2ffe51a8455f2
parent 965182ac
No related branches found
No related tags found
No related merge requests found
......@@ -299,6 +299,11 @@ int ThanosPlugin_t::executeStep(TransformStep_t& the_step, const bool are_debugg
const int parse_retval = the_step.parseArgs(step_args);
if(parse_retval != 0)
{
*real_cout<<"Done. Command failed! ***************************************"<<endl;
if(!step_optional)
{
*real_cout<<"ERROR: The "<<the_step.getStepName()<<" step is necessary, but failed. Exiting early."<<endl;
}
return parse_retval;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment