throw error if fulfill/reject-ing a resolved promise