i have a function like this
// an error is encountered here.
Main function is executed. When an error is encountered in function sub1, how to stop the script? It should not execute function sub2 and function sub3