go-ego / riot

Go Open Source, Distributed, Simple and efficient Search Engine; Warning: This is V1 and beta version, because of big memory consume, and the V2 will be rewrite all code.
Apache License 2.0
6.11k stars 474 forks source link

do not call Fatal from within library #81

Open bobheadxi opened 5 years ago

bobheadxi commented 5 years ago

there are a few calls to Fatal throughout the library - while most of them are in low-impact places, this shouldn't be done regardless, functions should return an error for the caller to handle instead

@vcaesar like my other issue i'd be willing to open a PR to implement this as well