Use try/catch to handle errors
Actions might fail silently if you don't explicitly handle errors.
Catch errors by using try/catch in your hook code.
This example tries to download from a non-existent website:
Here is the result of the test run:
Actions might fail silently if you don't explicitly handle errors.
Catch errors by using try/catch in your hook code.
This example tries to download from a non-existent website:
Here is the result of the test run: