3 ms·
No you just wrap it the way https://news.ycombinator.com/item?id=48267094 https://news.ycombinator.com/item?id=48267094 showed. Obviously you need to explicitl
by imtringued 5mo ago
No you just wrap it the way https://news.ycombinator.com/item?id=48267094 https://news.ycombinator.com/item?id=48267094 showed.
Obviously you need to explicitly include the line numbers since the error reporting Rust is closer to C (errno) than Java or JavaScript.
https://users.rust-lang.org/t/getting-line-numbers-with-as-i-would-with-unwrap/47002 https://users.rust-lang.org/t/getting-line-numbers-with-as-i...
Just do what feels right. I personally am a big fan of Java stack traces.