Skip to content

Commit 60ca012

Browse files
uri-99Oppen
authored andcommitted
fix: better error on batcher ws fail
1 parent 737fe5a commit 60ca012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batcher/aligned-sdk/src/sdk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ pub async fn get_nonce_from_batcher(
568568
batcher_ws_url: &str,
569569
address: Address,
570570
) -> Result<U256, GetNonceError> {
571-
let (ws_stream, _) = connect_async(batcher_ws_url).await.map_err(|_| {
572-
GetNonceError::ConnectionFailed("Ws connection to batcher failed".to_string())
571+
let (ws_stream, _) = connect_async(batcher_ws_url).await.map_err(|e| {
572+
GetNonceError::ConnectionFailed(e.to_string())
573573
})?;
574574

575575
debug!("WebSocket handshake has been successfully completed");

0 commit comments

Comments
 (0)