-
Notifications
You must be signed in to change notification settings - Fork 54
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
single-file-cli doesn't exit with error code when retriving page fails #17
Comments
I managed to get this working with the following diff for my use case. Feel free to pick this up and get it commit ready.
|
Thank you, I think I will integrate your changes but behind a flag. Considering a 404 as an error can be controversial. |
@gildas-lormeau |
@gildas-lormeau I made a PR to address this: #31 |
Hi. On encountering a network error as shown below,
single-file-cli
throws the error but does not propagate the error code on exit, which makes it difficult to determine when retrieving a bunch of urls if any of them failed.Can you ensure
single-file-cli
exits with appropriate code on an error? It would also be nice if there was a way to determine if the provided url returns a 404 (or any 400 or 500 code), but maybe that's harder to do.The text was updated successfully, but these errors were encountered: