We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 002f241 commit ce59affCopy full SHA for ce59aff
1 file changed
mtorrent-cli/tests/test_complete_torrent.rs
@@ -446,10 +446,17 @@ async fn listening_peer<P: Peer>(
446
accept_and_run!(listener);
447
}
448
449
- Err(e) if e.kind() == io::ErrorKind::AddrInUse => {
+ Err(e)
450
+ if matches!(
451
+ e.kind(),
452
+ io::ErrorKind::AddrInUse
453
+ | io::ErrorKind::PermissionDenied
454
+ | io::ErrorKind::AddrNotAvailable
455
+ ) =>
456
+ {
457
eprintln!("Couldn't create listener on {listening_addr}")
458
- Err(e) => panic!("{e}"),
459
+ Err(e) => panic!("{e:?}"),
460
461
462
0 commit comments