I want to handle the error from top catch, here is the below code.
try{
init().catch(e=> {
console.log('inside catch - ', e.message)
throw e;
})
} catch(e){
console.log('main catch - ', e.message)
}
async function init(){
null.split(',')
}
it logs console.log('inside catch - ', e.message) and I throw the error again so it can go to the next error handler that is console.log('main catch - ', e.message) but it is not going, Please tell me how can we do this.