From 3fe77cf1d2525512938cfb61f23e8db3e4769257 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Sat, 5 Nov 2022 16:13:12 -0500 Subject: [PATCH] Fix incorrect error messages for empty directives --- gatekeeper.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index 975b440..9f453f4 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -2107,11 +2107,11 @@ sub validate_commands { # Check that we actually have at least one command in the directive unless ($#$ops > 0) { if (1 == scalar @$packet) { - throw directive_syntax => trace => $ops, + throw directive_syntax => trace => [], summary => 'nothing to do - no commands in directive file'; } else { # Provide a different message if this looks like an upload packet. - throw directive_syntax => trace => $ops, + throw directive_syntax => trace => [], summary => "no filename element in $stem.directive.asc." .' Upgrade to the latest version! ' .'See http://www.gnu.org/prep/maintain/maintain.html'; -- 2.25.1