|
|
|
|
|
by lisivka
3501 days ago
|
|
Where you found this expect() function and how it will receive error, generated by baz? I read Rust documentation about error handling multiple times, but newer saw adequate error handling. The best solution I know is error-chain library: use errors::ChainErr;
try!(do_something().chain_err(|| "Something went wrong"));
|
|