Skip to content

Commit

Permalink
Missing trailing slash in code, added called resource when failure oc…
Browse files Browse the repository at this point in the history
…curs.
  • Loading branch information
KelvinTegelaar committed May 19, 2020
1 parent df112de commit 7a4039c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Azglue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if ($request.Headers.'x-api-key' -eq $ENV:AzAPIKey) {
$rand = get-random -Minimum 0 -Maximum 10
start-sleep $rand
$attempt--
if ($attempt -eq 0) { $ITGlueRequest = @{'Errorcode' = "Error code $($_.Exception.Response.StatusCode.value__) - Made 3 attempts and upload failed. $($_.Exception.Message) " } }
if ($attempt -eq 0) { $ITGlueRequest = @{'Errorcode' = "Error code $($_.Exception.Response.StatusCode.value__) - Made 3 attempts and upload failed. $($_.Exception.Message) / Resource was $($ENV:ITGlueURI)/$resource" } }
}
}

Expand Down

0 comments on commit 7a4039c

Please sign in to comment.