if I just throw a random error, my code works fine:
throw new Error(\'you got error\')
but if I want to throw it from within a .catch stateme