Include more user-friendly context in errors

This commit is contained in:
Chris 2020-01-04 22:11:45 +00:00
parent c7237fce36
commit 8ff8532138

View File

@ -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"}."'" });
} }
} }