String panic messages

These can be more reliably displayed in useful ways.
This commit is contained in:
Benjamin Saunders
2021-02-21 22:40:20 -08:00
committed by Dirkjan Ochtman
parent ef91537e73
commit e6e1019725
+2 -2
View File
@@ -1018,7 +1018,7 @@ fn test_flow_control(config: TransportConfig, window_size: usize) {
break;
}
Err(e) => {
panic!(e);
panic!("{}", e);
}
}
}
@@ -1049,7 +1049,7 @@ fn test_flow_control(config: TransportConfig, window_size: usize) {
break;
}
Err(e) => {
panic!(e);
panic!("{}", e);
}
}
}