mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
improve unwrapping custom binrw errors
This commit is contained in:
parent
f22ee95214
commit
46a03acd30
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ impl From<binrw::Error> for BspError {
|
|||
|
||||
// only a few error types should be generated by our code
|
||||
match e {
|
||||
Error::Backtrace(trace) => Self::from(*trace.error),
|
||||
Error::Io(e) => BspError::IO(e),
|
||||
Error::Custom { err, .. } => {
|
||||
if err.is::<StringError>() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue