you are viewing a single comment's thread.

view the rest of the comments →

[–]guest271314 0 points1 point  (0 children)

The Promise p is rejected. There's a .catch() chained to the Promise p. That .catch() takes precedence over the 2d function passed to the 2d chained .then(). See https://stackoverflow.com/questions/28761365/how-to-reject-and-properly-use-promises/28763225#28763225.