GoOse icon indicating copy to clipboard operation
GoOse copied to clipboard

Avoiding panics

Open urandom opened this issue 11 years ago • 1 comments

Would it be possible to introduce a new method alongside Crawl, or change the existing one, so that an error is returned as the last argument rather than panicing? It'd be nice to obtain the error on any stage of the crawl (fetching, parsing, etc) so it can be handled accordingly.

urandom avatar Oct 31 '14 08:10 urandom

Looking at the code, there are a lot of places where errors should be returned instead of just logging or panic(). I agree that this is not very idiomatic, and should be fixed.

flexd avatar Aug 07 '15 10:08 flexd