How to render PrePostJobScript fail

Hi there:

We have PrePostJobScript running at the end of each, whether the script runs or fails due to error within the script, it always says status as completed. How do we change the status of this script execution as failed when there is an error in the script ?

Regards
/Biju

Hello @biju_ramachandran

Thanks for reaching out, we need to see how the error is printed in your post job script. can you please share the Task report of your post job script .