Skip to content

Commit 5e4a925

Browse files
committed
Add more context when retrying to launch the process
1 parent 49d2134 commit 5e4a925

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ impl BitcoinD {
311311
warn!("early exit with: {:?}. Trying to launch again ({} attempts remaining), maybe some other process used our available port", status, conf.attempts);
312312
let mut conf = conf.clone();
313313
conf.attempts -= 1;
314-
return Self::with_conf(exe, &conf);
314+
return Self::with_conf(exe, &conf)
315+
.with_context(|| format!("Remaining attempts {}", conf.attempts));
315316
} else {
316317
error!("early exit with: {:?}", status);
317318
return Err(Error::EarlyExit(status).into());

0 commit comments

Comments
 (0)