Skip to content

Commit 8e00949

Browse files
committed
change error messages
1 parent 4d04fb3 commit 8e00949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

batcher/aligned-sdk/src/core/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ impl FromStr for Network {
448448
s => {
449449
if !s.contains("custom") {
450450
return Err(
451-
"Invalid network, possible values are: \"holesky\", \"holesky-stage\", \"devnet\", \"mainnet\", \"'custom <BATCHER_PAYMENT_SERVICE_ADDRESS> <ALIGNED_SERVICE_MANAGER_ADDRESS>'\""
451+
"Invalid network, possible values are: \"holesky\", \"holesky-stage\", \"devnet\", \"mainnet\", \"custom <BATCHER_PAYMENT_SERVICE_ADDRESS> <ALIGNED_SERVICE_MANAGER_ADDRESS>\""
452452
.to_string(),
453453
);
454454
}
@@ -458,7 +458,7 @@ impl FromStr for Network {
458458
Ok(Network::Custom(parts[1].to_string(), parts[2].to_string()))
459459
} else {
460460
Err(
461-
"Invalid network, possible values are: \"holesky\", \"holesky-stage\", \"devnet\", \"mainnet\", \"'custom <BATCHER_PAYMENT_SERVICE_ADDRESS, ALIGNED_SERVICE_MANAGER_ADDRESS>'\""
461+
"Invalid custom network, \"custom <BATCHER_PAYMENT_SERVICE_ADDRESS, ALIGNED_SERVICE_MANAGER_ADDRESS>\""
462462
.to_string()
463463
)
464464
}

0 commit comments

Comments
 (0)