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

Merge branch 'thanos_err_report_fix' into 'master'

Thanos err report fix

See merge request allnp/security_transforms!20

Former-commit-id: baf0322e0c621c26052a8dfb7bbf4ed76577478c
parents 7e4ba22d e1798fd0
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ int main(int argc, char* argv[])
thanos_log << "A critical step failed: " << plugin->getStepName() << endl;
thanos_log << "If DEBUG_STEPS is not on, this failure could "
<< "be due to an earlier critical step." << endl;
return 2; // critical step failed, abort
return 1; // critical step failed, abort
}
}
// write back final changes
......@@ -132,7 +132,7 @@ int main(int argc, char* argv[])
<< endl;
thanos_log << "If DEBUG_STEPS is not on, this failure could "
<< "be due to an earlier critical step." << endl;
return 2; // critical step failed, abort
return 1; // critical step failed, abort
}
else
{
......@@ -299,15 +299,10 @@ 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)
{
if(step_optional)
*real_cout<<"Done. Command failed! ***************************************"<<endl;
if(!step_optional)
{
*real_cout<<"Done. Command failed! ***************************************"<<endl;
}
else
{
*real_cout<<"Done. Command failed! ***************************************"<<endl;
*real_cout<<"ERROR: The "<<the_step.getStepName()<<" step is necessary, but failed. Exiting early."<<endl;
*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