Run a specific script if the current script gets the error


I wonder that I can set the settings on Eggplant Function tool so that it can be able to run a specific script if my current script gets the error when running. In selenium, I can do this but I don’t know how to do this on Eggplant.
Please help me!

Thanks all,

You would need to put the contents of your script into a try/catch block and put the call to the other script in the catch part. Then if the script fails anywhere in it’s execution, the other script will be called.