How can I throw an error from within a catch, without it being an UnhandledPromiseRejection

前端 未结 0 672
深忆病人
深忆病人 2020-12-02 09:18

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题