Closed titanism closed 3 days ago
seemed to be a bug in my code
Thanks for circling back!
Can you share what the bug was so others can avoid that pitfall?
My promise wasn't actually rejecting, it was logging the error to console instead of throwing it
If you have a statement like
iterate()
and inside you haveawait foo()
and if this function throws an error (e.g. it's a Promise that rejects), then the rejection error will not bubble up and will not cause the iterate to end, nor would manually wrapping it with a try/catch and adding abreak;
in thecatch
block.