Closed tjmoore4 closed 2 months ago
Makes sense, but I wonder if it would be worthwhile to capture the errors and return that to the user (which would take some flexibility since, as you point out, an error might be on stderr or stdout)
Makes sense, but I wonder if it would be worthwhile to capture the errors and return that to the user (which would take some flexibility since, as you point out, an error might be on stderr or stdout)
This should keep our error behavior the same overall. The main impact is that we try an stanza upgrade immediately after a stanza create fails rather than depending on a particular error to trigger the upgrade. The existing code would similarly not print the initial create error without first trying an upgrade.
This should keep our error behavior the same overall. The main impact is that we try an stanza upgrade immediately after a stanza create fails rather than depending on a particular error to trigger the upgrade. The existing code would similarly not print the initial create error without first trying an upgrade.
Yeah, I guess I'm wondering if we get an error on create and then get an error on upgrade, we will only ever see the upgrade error, right? Not a blocker for me, I was just wondering.
This should keep our error behavior the same overall. The main impact is that we try an stanza upgrade immediately after a stanza create fails rather than depending on a particular error to trigger the upgrade. The existing code would similarly not print the initial create error without first trying an upgrade.
Yeah, I guess I'm wondering if we get an error on create and then get an error on upgrade, we will only ever see the upgrade error, right? Not a blocker for me, I was just wondering.
Yeah, that's my understanding. The approach is effectively, if the create
error is solved by calling upgrade
instead, don't bother the user. Definitely an argument to be made either way, but I think this approach is reasonable.
Checklist:
Type of Changes:
What is the new behavior (if this is a feature change)?
Other Information: Issue: PGO-1558