lightning-rs icon indicating copy to clipboard operation
lightning-rs copied to clipboard

Update error-handling in (at least) the config module

Open chriskrycho opened this issue 8 years ago • 0 comments

Change all my instances of Result<T, String> to be Result<T, Vec<String>> instead. Collect errors to supply all validation errors to the user? And generalize that to all types? In the latter case, Vec<String> can become my internal error type—if not for the whole project, then at least for the config crate, where that's a super useful pattern for the validator(#12).

chriskrycho avatar Dec 25 '16 03:12 chriskrycho