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

Fix panic, use standard errors package and return more errors. #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

JOT85
Copy link

@JOT85 JOT85 commented Jan 19, 2020

Hello,
I was using the library for a simple automated update tool and I got a panic when my network failed! It was due to a defer being placed before an error check had been made. I've corrected that (
6d9da4a), and also tidied a few things up:
Return errors returned by ioutil.ReadAll -- fb33db4, 6d9da4a
Use standard errors package for error -- c6b684f
Use md5.Sum (it's tidier) -- 19e52cd
Return errors from url.Parse -- c380603
Thanks,
Jacob

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.

1 participant