Rename error to rejected as it's a Promise, not Error.