0.2.3
Pre-release
Pre-release
This release updates unwrap/unwrapErr/expect/expectErr messages to match Rust's implementation:
unwraponErrnow throws an error with the error message being the containing error value- e.g.
err("emergency").unwrap()throws anErrorwithemergencyas the message
- e.g.
unwrapErronOknow throws an error with the error message being the containing value- e.g.
ok(123).unwrapErr()throws anErrorwith123as the message
- e.g.
expectonErrnow throws an error with the provided message and the containing error value as the message- e.g.
err("failed").expect("should not fail")throws anErrorwithshould not failed: failedas the message
- e.g.
expectErronOknow throws an error with the provided message and the containing value as the message- e.g.
ok("hello").expectErr("should fail")throws anErrorwithshould fail: helloas the message
- e.g.