# Check that we actually have at least one command in the directive
unless ($#$ops > 0) {
if (1 == scalar @$packet) {
- fatal("nothing to do - no commands in directive file",1);
+ throw directive_syntax => trace => $ops,
+ summary => 'nothing to do - no commands in directive file';
} else {
# Provide a different message if this looks like an upload packet.
- fatal("no filename directive specified in $stem.directive.asc. "
- ."Upgrade to the latest version! "
- ."See http://www.gnu.org/prep/maintain/maintain.html",1)
+ throw directive_syntax => trace => $ops,
+ summary => "no filename element in $stem.directive.asc."
+ .' Upgrade to the latest version! '
+ .'See http://www.gnu.org/prep/maintain/maintain.html';
}
}
exp_continue
}
-re {^gatekeeper\[[0-9]+\]: \(Test\) \[PV\]\
- no filename directive specified in ([^\r\n]+)[.]\
+ no filename element in ([^\r\n]+)[.]\
Upgrade to the latest version![^\r\n]+} {
# from read_directive_file, if no filename given
# This was valid in v1 but v1 is now obsolete.