I am calling an asynchronus function and from within that function want to throw an error. But I want to handle this error from the catch block of calling function
@JupiterAmy : if you are using then and catch, it's no essmtial to use async and await. only follow this format: function() .then( ...) .catch(e => console.log(e))