chore(validate): update error description to space actual error (#538)

Co-authored-by: MagnusHJensen <magnus.holm.jensen@lego.dk>
This commit is contained in:
Magnus Jensen 2023-02-15 17:40:32 +01:00 committed by GitHub
parent 3b22f59988
commit dc15914a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,12 +42,12 @@ pub fn validation_errors_to_string(
if let Some(error) = errors.get(0) {
if let Some(adder) = adder {
output.push_str(&format!(
"Field {} {} failed validation with error {}",
"Field {} {} failed validation with error: {}",
field, adder, error.code
));
} else {
output.push_str(&format!(
"Field {} failed validation with error {}",
"Field {} failed validation with error: {}",
field, error.code
));
}