With this update, the entire function is now wrapped in a try-catch block. This means that if any part of the function throws an error, it will be caught and handled gracefully. The error will be logged to the console for debugging purposes, and the function setError(true) will be called to indicate that an error has occurred. This will provide a better user experience by preventing unexpected crashes.
Description
With this update, the entire function is now wrapped in a try-catch block. This means that if any part of the function throws an error, it will be caught and handled gracefully. The error will be logged to the console for debugging purposes, and the function
setError(true)
will be called to indicate that an error has occurred. This will provide a better user experience by preventing unexpected crashes.Issue solved: #104