Content:
When a runtime error occurs during image generation, I want to use the “Resume” error handler to modify the image prompt and retry from the image generation step.
However, when I select “Resume”, I see options like Created
, Data (+ Add item)
, and File
, but I’m not sure what to enter there or how to properly set up the flow.
Could you please guide me on how to configure this so that I can change the prompt and retry the generation step after an error?
Thank you!
Hi @rjstkdd
You can add additional steps to the error handler route. In your case, add one more Generate and Image module (with a new prompt) and map the output of this module to the Return module.
Welcome to the Make community!
Handle errors so scenarios don’t stop.
You might want to add some error handling to your modules to handle exceptions, so the failing module(s) can automatically be retried or ignored. By handling any errors by adding a “Error handler” to the module, the scenario won’t throw an error and get turned off.
Error directives can only be added to an error handler route.
1. Right click and select “Add error handler”
2. Error handlers will appear
For more information on error handling, see:
Example
Here is an example of how your scenario could look:
This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
1 Like