Include more user-friendly context in errors
This commit is contained in:
parent
c7237fce36
commit
8ff8532138
@ -300,7 +300,7 @@ sub _validate_ingredient {
|
|||||||
$ingredient -> {"notes"} = $self -> {"template"} -> html_clean($ingdata -> {"notes"});
|
$ingredient -> {"notes"} = $self -> {"template"} -> html_clean($ingdata -> {"notes"});
|
||||||
} else {
|
} else {
|
||||||
$errors .= $self -> {"template"} -> load_template("error/error_item.tem",
|
$errors .= $self -> {"template"} -> load_template("error/error_item.tem",
|
||||||
{ "%(error)s" => "{L_ERR_BADNOTES}" });
|
{ "%(error)s" => "{L_ERR_BADNOTES}: '".$ingdata -> {"notes"}."'" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user