Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

making the error body be returned on deployment errors from arm in pr… #1801

Merged
merged 3 commits into from
Nov 20, 2017

Conversation

JackQuincy
Copy link
Contributor

…eflight

What this PR does / why we need it:
makes preflight errors in the deployment be returned from the arm helper so above code can return them/act on them

@JackQuincy JackQuincy requested a review from weinong November 20, 2017 21:57
@ghost ghost assigned JackQuincy Nov 20, 2017
@ghost ghost added the in progress label Nov 20, 2017
cmd/deploy.go Outdated
nil)
if err != nil {
nil); err != nil {
b, _ := json.Marshal(res)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it provide value? json.Marshal() does not serialize the response body...

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@JackQuincy
Copy link
Contributor Author

@weinong this time I actually caused a preflight valdiation error and valdiated the response body gets printed. Mostly is redundant with the error message but could technically be different depending on the message

@jackfrancis jackfrancis merged commit dfd5a71 into master Nov 20, 2017
@ghost ghost removed the in progress label Nov 20, 2017
@jackfrancis jackfrancis deleted the deployment-error-response-passing branch November 20, 2017 23:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants