Skip to content
RED SAG Skills
hard20 pts · first answer countsjavascriptasync-awaiterrors

try/catch around forEach with async

Why does the catch below never run when one save fails?

try {
  items.forEach(async (it) => {
    await save(it)
  })
} catch (e) {
  showError(e)
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions