See also

  • Handle errors with Promise.catch
  • Simulating finally with Promise.then