Comparing error reporting with Promises