Reject promise with error message.