Trap Errors and Cleanup

Registers a function to call when the script exits or hits an error. Useful for cleanup (temp files, locks) on failure.

Command


        
6 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.