fix: Correct misleading error message

Took 3 minutes
This commit is contained in:
Diana Carvalho
2025-06-13 16:33:42 +01:00
parent 95994250b1
commit a6cf2159d0

View File

@@ -76,7 +76,7 @@ impl StrategyEncoder for SingleSwapStrategyEncoder {
let number_of_groups = grouped_swaps.len();
if number_of_groups != 1 {
return Err(EncodingError::InvalidInput(format!(
"Executor strategy only supports exactly one swap for non-groupable protocols. Found {number_of_groups}",
"Single strategy only supports exactly one swap for non-groupable protocols. Found {number_of_groups}",
)))
}