Repository navigation
Bug 1312230 - fix image import command to reflect the actual status - #10847
Conversation
| default: | ||
| fmt.Fprint(o.out, "The import completed successfully.\n\n") | ||
| if wasError(result) { | ||
| fmt.Fprint(o.out, "The import did not complete successfully, please check below for details.\n\n") |
There was a problem hiding this comment.
Hm, we should be outputting this through stderr
|
Comments addressed. |
| default: | ||
| fmt.Fprint(o.out, "The import completed successfully.\n\n") | ||
| if wasError(result) { | ||
| fmt.Fprint(o.errout, "The import did not complete successfully, please check below for details.\n\n") |
There was a problem hiding this comment.
Don't say "successfully" if there was an error. Also, we try to exit with "error: ", so I don't think this line would be correct. It would be better to actually print out the error condition directly to the user water than print the describe.
|
@smarterclayton updated, current output: |
|
Rebased @smarterclayton || @openshift/cli-review ptal |
|
LGTM |
|
[Test]ing while waiting on the merge queue |
|
LGTM, good stuff @soltysh |
I'm just fixing bugs 😉 |
|
Errors should print with an "error: " prefix (and print last) if you encounter them. |
|
Removing merge, it doesn't quite explain that errors occurred in a way that jumps out at the user. |
|
Basically from the output it's not obvious that the action actually failed. Either: one error: multiple errors: or errors plus output: |
|
@smarterclayton updated, I dropped printing errors, since we already do that next to every tag (sic!), so I've just changed the successful message to one with information there was errors. Here's the current output: Is it more to your liking? |
|
Evaluated for origin test up to 584e1cb |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9477/) |
1 similar comment
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9477/) |
|
Yes that's excellent. On Thu, Sep 29, 2016 at 8:12 AM, OpenShift Bot [email protected]
|
|
[merge] upon approval |
|
Evaluated for origin merge up to 584e1cb |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9530/) (Image: devenv-rhel7_5104) |
Currently we always return
The import completed successfullyno matter what actually happened. This PR small check to modify slightly this information to better reflect the actual status.Fixes bug 1312230.
@openshift/cli-review ptal