I couldn't find this information online anywhere so I wanted to make sure I posted it for all to see. I'm new here, so I apologize if this is common knowledge.

I have some Pre/Post commands defined for some of my backup jobs. If one of these fails I want to make sure that it is reflected as an error in the backup log.

I tried exiting my scripts using exit codes, as is common practice, to have AhSay detect the error. Unfortunately, it doesn't seem that AhSay monitors exit codes. It didn't matter what I set the exit code to, it was always detected by AhSay as successful.

However, through my testing AhSay DOES monitor STDERR, at least on Windows where I was testing this. After a Pre/Post job is run, it looks like AhSay will check STDERR to see if there's anything in there. If there is, an error has occurred. If it's empty, it was successful. So, exit codes... no dice!