From 76c712737a53fe3e624ff7ac1e04cb23c545c250 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 25 Sep 2019 21:50:45 +0100 Subject: [PATCH] Make validation errors propagate back to the user Seriously, how in the name of Eris did I miss this one?! --- 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 e5c29e2..0458a0c 100644 --- a/blocks/ORB/Common.pm +++ b/blocks/ORB/Common.pm @@ -507,7 +507,7 @@ sub _validate_recipe { $errors .= $self -> {"template"} -> load_template("error/error_item.tem", { "%(error)s" => $error }) if($error); - return ($args, undef); + return ($args, $errors); }