Skip to content

Commit

Permalink
Enhance deployment error in case of 403 (#305)
Browse files Browse the repository at this point in the history
* Enhance deployment error in case of 403

* Update aka.ms link

---------

Co-authored-by: Akshay Kumar <[email protected]>
  • Loading branch information
kumaraksh1 and Akshay Kumar authored Mar 31, 2023
1 parent 05ac4e9 commit 7d2c9e2
Show file tree
Hide file tree
Showing 4 changed files with 1,106 additions and 57 deletions.
9 changes: 8 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ function main() {
}
catch (error) {
isDeploymentSuccess = false;
core.setFailed("Deployment Failed with Error: " + error);
if (error.statusCode == 403) {
core.setFailed("The deployment to your web app failed with HTTP status code 403. \
Your web app may have networking features enabled which are blocking access (such as Private Endpoints).\
For more information, please follow https://aka.ms/forbidden-deployment-error");
}
else {
core.setFailed("Deployment Failed, " + error);
}
}
finally {
if (deploymentProvider != null) {
Expand Down
Loading

0 comments on commit 7d2c9e2

Please sign in to comment.