Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Update client/cli/src/params/runtime_params.rs
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
yjhmelody and bkchr authored Apr 20, 2023
commit 677bbbe9535008ae9cfa8683c75c21a3f04fc20d
2 changes: 1 addition & 1 deletion client/cli/src/params/runtime_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn parse_max_runtime_instances(s: &str) -> Result<usize, String> {
.map_err(|_err| format!("Illegal `--max-runtime-instances` value: {s}"))?;

if max_runtime_instances > 256 {
Err(format!("Illegal `--max-runtime-instances` value: {max_runtime_instances}"))
Err(format!("Illegal `--max-runtime-instances` value: {max_runtime_instances} is more than the allowed maximum of `256` "))
} else {
Ok(max_runtime_instances)
}
Expand Down