'Parse number failed' implies that we could not parse the number, but to
know it was too big, we had to parse the number correctly, so this is
confusing. Replacing with 'Input invalid' makes it clearer that what
is actually happening.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
let number = match T::value_to_number(value) {
Ok(number) => number,
- Err(err) => return Err(Error::msg(tr!("Parse number failed: {}", err.to_string()))),
+ Err(err) => return Err(Error::msg(tr!("Input invalid: {}", err.to_string()))),
};
if let Some(min) = props.min {