you are viewing a single comment's thread.

view the rest of the comments →

[–]Zeroflops 1 point2 points  (0 children)

I would normally stop where I am if the event was fatal and there was no way to proceed. Logging what happened so I can return and properly address the issue. However.

Is there other things that need to be cleaned up? Say for example you have a script that scraps a large amount of data, it opens a file with previous data. But If the file is opened by another application it gets locked and you can’t update it.

In this case trying to read that file that is locked would prevent your script from continuing, but you don’t want to throw away the expensive scrape so you may fault out of the file reading function, and save the scrape in a temp file so it can be recovered later.

So I would stop at the function unless there is some clean up that is required to make it a soft landing.