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
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.