Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prefer elevated RequestError#status, if present
  • Loading branch information
James M. Greene authored and James M. Greene committed Mar 9, 2023
1 parent 44b836a commit a8d1a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deployment.js
Expand Up @@ -167,7 +167,7 @@ class Deployment {

// build customized error message based on server response
if (error.response) {
errorStatus = error.response.status
errorStatus = error.status || error.response.status

errorCount++

Expand Down

0 comments on commit a8d1a4c

Please sign in to comment.