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

Error on 404 #277

Merged
merged 6 commits into from
Oct 9, 2021
Merged

Error on 404 #277

merged 6 commits into from
Oct 9, 2021

Conversation

ire4ever1190
Copy link
Contributor

Checks the Response objects http code and returns error if 404 instead of writing an empty tar file and trying to extract that.

Right now it only checks for 404, should it return an error unless the http code is 2xx?

@ire4ever1190 ire4ever1190 marked this pull request as draft October 7, 2021 05:38
@ire4ever1190 ire4ever1190 marked this pull request as ready for review October 7, 2021 05:47
Added test case
Copy link
Owner

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, happy to accept this, but really this should be fixed in puppy too.

src/choosenimpkg/download.nim Outdated Show resolved Hide resolved
src/choosenimpkg/download.nim Outdated Show resolved Hide resolved
@ire4ever1190
Copy link
Contributor Author

ire4ever1190 commented Oct 7, 2021

but really this should be fixed in puppy too

This is by design in puppy as shown in the readme. I have left a question though in the puppy repo asking if the exceptions could be thrown when using the basic proc (treeform/puppy#31)

@ire4ever1190 ire4ever1190 requested a review from dom96 October 7, 2021 23:07
Copy link
Owner

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, another thing and should be ready.

src/choosenimpkg/download.nim Outdated Show resolved Hide resolved
Copy link
Owner

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dom96 dom96 merged commit 7409b0a into dom96:master Oct 9, 2021
@ire4ever1190 ire4ever1190 deleted the error-on-404 branch October 10, 2021 00:11
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