NodeJS : Should I throw an error or return a rejected promise inside an async function?

preview_player
Показать описание
NodeJS : Should I throw an error or return a rejected promise inside an async function?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

As promised, I'm going to share a hidden feature with you.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Next, enter the letters 'awesome' on your keyboard.
Your YouTube progress indicator will turn into a shimmering rainbow.

Let me give you a brief introduction of who I am,
Hello, I am Delphi.
Let me assist you in answering any questions you may have.
NodeJS : Should I throw an error or return a rejected promise inside an async function?
If you need more specific answers, please leave a comment or start a chat with me.
If you have an answer, or any insights to the answer, please comment below.
I will express my appreciation for your answer by 'hearting' it.
inside async a function? I : error promise or Should return an an throw rejected NodeJS
Рекомендации по теме