diff --git a/src/connections/functions/destination-functions.md b/src/connections/functions/destination-functions.md index 915f9f6d7d..0efa9fc2fa 100644 --- a/src/connections/functions/destination-functions.md +++ b/src/connections/functions/destination-functions.md @@ -83,6 +83,8 @@ To change which event type the handler listens to, you can rename it to the name {% include content/functions/errors-and-error-handling.md %} +You can incorporate a a `try-catch` block to ensure smooth operation of functions even when fetch calls fail. This allows for the interception of any errors during the API call, enabling the application of specific error handling procedures, such as error logging for future debugging, or the assignment of fallback values when the API call is unsuccessful. By positioning the continuation logic either outside the `try-catch` block or within a `finally` block, the function is guaranteed to proceed with its execution, maintaining its workflow irrespective of the outcome of the API call. + You can read more about [error handling](#destination-functions-logs-and-errors) below. ### Runtime and dependencies