From 8ff8532138da468f2d1b2e92e5f0aa8642a5ec96 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 4 Jan 2020 22:11:45 +0000 Subject: [PATCH] Include more user-friendly context in errors --- blocks/ORB/Common.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/ORB/Common.pm b/blocks/ORB/Common.pm index 0458a0c..0db8caf 100644 --- a/blocks/ORB/Common.pm +++ b/blocks/ORB/Common.pm @@ -300,7 +300,7 @@ sub _validate_ingredient { $ingredient -> {"notes"} = $self -> {"template"} -> html_clean($ingdata -> {"notes"}); } else { $errors .= $self -> {"template"} -> load_template("error/error_item.tem", - { "%(error)s" => "{L_ERR_BADNOTES}" }); + { "%(error)s" => "{L_ERR_BADNOTES}: '".$ingdata -> {"notes"}."'" }); } }