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
Related in this category
Log in to save
Free account. Save snippets into your own collections.