I need help on the issue which I\'m facing using the below code.
The below function has 2 nested functions, the problem here is when I get an error in the first neste