Skip to content

Commit 7d2c9e2

Browse files
kumaraksh1Akshay Kumar
andauthored
Enhance deployment error in case of 403 (#305)
* Enhance deployment error in case of 403 * Update aka.ms link --------- Co-authored-by: Akshay Kumar <[email protected]>
1 parent 05ac4e9 commit 7d2c9e2

File tree

4 files changed

+1106
-57
lines changed

4 files changed

+1106
-57
lines changed

lib/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ function main() {
5454
}
5555
catch (error) {
5656
isDeploymentSuccess = false;
57-
core.setFailed("Deployment Failed with Error: " + error);
57+
if (error.statusCode == 403) {
58+
core.setFailed("The deployment to your web app failed with HTTP status code 403. \
59+
Your web app may have networking features enabled which are blocking access (such as Private Endpoints).\
60+
For more information, please follow https://aka.ms/forbidden-deployment-error");
61+
}
62+
else {
63+
core.setFailed("Deployment Failed, " + error);
64+
}
5865
}
5966
finally {
6067
if (deploymentProvider != null) {

0 commit comments

Comments
 (0)