Skip to content

Commit 5a762c3

Browse files
authored
Merge pull request #4259 from distortedsignal/wildcard_match_file_fail
Persist printing error, NOT ErrorKind
2 parents 90ea905 + e3c9cf9 commit 5a762c3

File tree

1 file changed

+2
-2
lines changed
  • listings/ch09-error-handling/listing-09-05/src

1 file changed

+2
-2
lines changed

listings/ch09-error-handling/listing-09-05/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ fn main() {
1111
Ok(fc) => fc,
1212
Err(e) => panic!("Problem creating the file: {e:?}"),
1313
},
14-
other_error => {
15-
panic!("Problem opening the file: {other_error:?}");
14+
_ => {
15+
panic!("Problem opening the file: {error:?}");
1616
}
1717
},
1818
};

0 commit comments

Comments
 (0)