-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bad session token error masked if not creating a new bucket #65
Comments
I think the root problem is in this function: s3-credentials/s3_credentials/cli.py Lines 18 to 23 in 7fb4db1
It looks like it's turning all errors - not just "bucket does not exist" but also "authentication failed" - into a s3-credentials/s3_credentials/cli.py Lines 279 to 286 in 7fb4db1
|
I'm tempted to define a new A tiny bit inelegant since it's tied to Click, but I can unwind it into a separate click-free exception if I ever implement the Python library idea in #32. |
This looks like a good way to catch these errors that aren't actually related to missing buckets. |
If a bad or expired session token is set, the create command fails with a misleading error that an existing bucket doesn't exist, if --create-bucket isn't specified. If --create-bucket is specified a traceback with more info is given instead:
The text was updated successfully, but these errors were encountered: