Let's add Error handler: Try and Error handler: Catch to catch any errors. To do that, look up Error handler and then drag and drop the Try action. We will add all of the automation logic in this Try block in the next few sections.
Before we do that, we'll add the Catch action beneath Try. In the Catch action's properties, set the Exception type as AllErrors. Create a String variable called errorMesage to store the error message:
In the Catch block, let's also add a Message Box with the message Following error occurred $errorMessage$. Finally, click the Save button at the top to save the bot so far, before we open and read the user request PDF file.