microsoft / code-push

A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.
https://microsoft.github.io/code-push/
Other
4.34k stars 484 forks source link

CodePushHttpError pass response as error cause #806

Closed retyui closed 8 months ago

retyui commented 1 year ago

Hi team! Could you please pass a network response as Error.prototype.cause, too simply logic with handling response statuses

Example:

const err = new CodePushHttpError(msg, {cause: response})

if(err.cause.status === 500){
  // my logic
}

meta:

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost commented 1 year ago

no

microsoft-github-policy-service[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.