Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Always print out the nested command on failure. #1952

Merged
merged 4 commits into from
Feb 13, 2018
Merged

Conversation

chmeyers
Copy link
Contributor

This way users will always have at least something to look at when we report that a gcloud command fails.

print('A nested call to gcloud failed.')
print('Command: ["' + '","'.join(e.cmd) + '"]')
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like this should be under an if utils.print_debug_messages(args): condition, so that we don't doubly spam users when the cause of the failure has already been reported.

I also think we should probably make the get_gcloud_zone and get_email_address methods print their stdout/stderr if they fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done & Done.

ojarjur
ojarjur previously approved these changes Feb 12, 2018
@chmeyers
Copy link
Contributor Author

Fixed flake8 errors. PTAL

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.

2 participants