-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in stdout not stderr #2187
Comments
By change, I have now found that this is a regression, since it was supposedly fixed in #820. An implicit bug is also back: |
What version of the CLI are you using? Running the following results in nothing being displayed:
This is on the most recent version of the CLI. |
aws-cli/1.10.64 Python/2.7.10 Darwin/15.6.0 botocore/1.4.54 running $ aws s3 cp s3://bucket-that-exists/object-that-does-not-exist - 2>/dev/null $ aws s3 cp s3://bucket-that-exists/object-that-does-not-exist this one would have printed to stderrAn error occurred (404) when calling the HeadObject operation: Key"object-that-does-not-exist" does not exist So I guess a problem with the "-" (use stdout) case. On Fri, Sep 23, 2016 at 7:05 PM, Jordon Phillips notifications@github.com
andreineculau.com http://www.andreineculau.com |
I've confirmed the issue, thanks for reporting! |
`uni_print` prints out to stdout by default, but we need to print to stderr when things go wrong. Fixes aws#2187
Confirmed fixed on the latest version of the CLI:
|
aws#2187) * feat: Added the option to hide progress bars during s3 upload for simplicity through --no-progressbar * Used a black version in sync with AppVeyor * Resolved conflict to get in sync with the newest change * Revised based on code review * Added integration test for progressbar option * Changed parameterized integ test parameter type
* feat: Added the option to hide progress bars during s3 upload for simplicity through --no-progressbar * Used a black version in sync with AppVeyor * Resolved conflict to get in sync with the newest change * Revised based on code review * Added integration test for progressbar option * Changed parameterized integ test parameter type * Fixed an error with previous merge * Removed a flush operation for s3uploader
I have discovered that a failing "aws s3 cp" for instance that ends up in error "Transfer failed: An error occurred (404).." outputs that line in stdout, not stderr. The same might apply to other aws-cli commands.
Context:
aws s3 cp s3://... -
i.e. outputting the object to stdoutThe text was updated successfully, but these errors were encountered: