Skip to content

Commit 13c6d7d

Browse files
Warn user if Sse addr is 0.0.0.0 (#15)
* warn user if sse addr is 0.0.0.0 * [autofix.ci] apply automated fixes * feat: show url if not able to connect to server --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 67e1c9e commit 13c6d7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/gpmcp-layer-core/src/runner/transport_manager.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ impl TransportManager {
9595
info!("Server is ready after {} attempts", attempt);
9696
return Ok(());
9797
}
98-
Err(e) => {
98+
Err(_) => {
9999
if attempt == max_attempts {
100100
return Err(anyhow::anyhow!(
101-
"Server not ready after {} attempts. Last error: {}",
102-
max_attempts,
103-
e
101+
"Cannot connect to {url}. Server not ready after {max_attempts} attempts."
104102
));
105103
}
106104
// Wait before next attempt

0 commit comments

Comments
 (0)