You are correct in that there was nothing that could be done in the program. However, I believe it is worth logging problems even when the program cannot correct them, so the person involved knows of the problem (a corrupt file in this case) and can take appropriate action.
Returning an error code rather than a success code from the script can can also prevent subsequent programs from attempting to process the possibly incorrect output.
In reply to Re: Re: read/write subroutine
by mikeB
in thread read/write subroutine
by epoptai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |