Skip to content
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

non-zero exit code on failure #11

Closed
wants to merge 3 commits into from
Closed

non-zero exit code on failure #11

wants to merge 3 commits into from

Conversation

alexism
Copy link
Contributor

@alexism alexism commented May 14, 2013

Hi Alex,

I hope you're doing well!

I noticed that s3cp commands return zero on failures.
This pull request fixes that in addition to centralizing the error handing in one place, cf S3CP#standard_exception_handling in utils.rb

#s3_to_local is also made more robust in case the source key is not specified by the user, or does not exist in S3.

see you soon,

Alexis

@aboisvert
Copy link
Owner

Thanks! Patch looks good from a quick/casual review. I'm off to the beach today (with visiting cousin). Will merge and release tomorrow.

aboisvert added a commit that referenced this pull request May 15, 2013
* Changed:  Improved error handling -- all commands now exit with non-zero exit
            code on error.  [Alexis Midon / alexism@github / Pull request #11]

* Changed:  s3cp properly fails   when source key is not specified or does not exist.
            [Alexis Midon / alexism@github / Pull request #11]
@aboisvert
Copy link
Owner

Merged and released into 1.1.30.

@aboisvert aboisvert closed this May 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants