File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
core/src/ephemeral_server Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -230,13 +230,20 @@ impl EphemeralServer {
230
230
. client_name ( "online-checker" . to_owned ( ) )
231
231
. client_version ( "0.1.0" . to_owned ( ) )
232
232
. build ( ) ?;
233
+ let mut last_error = None ;
233
234
for _ in 0 ..50 {
234
235
sleep ( Duration :: from_millis ( 100 ) ) . await ;
235
- if client_options. connect_no_namespace ( None ) . await . is_ok ( ) {
236
+ let connect_res = client_options. connect_no_namespace ( None ) . await ;
237
+ if let Err ( err) = connect_res {
238
+ last_error = Some ( err) ;
239
+ } else {
236
240
return success;
237
241
}
238
242
}
239
- Err ( anyhow ! ( "Failed connecting to test server after 5 seconds" ) )
243
+ Err ( anyhow ! (
244
+ "Failed connecting to test server after 5 seconds, last error: {:?}" ,
245
+ last_error
246
+ ) )
240
247
}
241
248
242
249
/// Shutdown the server (i.e. kill the child process). This does not attempt
You can’t perform that action at this time.
0 commit comments