Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
11a54e6e
Commit
11a54e6e
authored
Dec 24, 2019
by
IKEDA Soji
Browse files
Show more precise logs on error.
parent
4fb71934
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Scenario.pm
View file @
11a54e6e
...
...
@@ -583,11 +583,11 @@ sub _compile_scenario {
my
$required
=
join
"
\n
",
map
{
my
$req
;
if
(
$_
eq
'
list_object
')
{
$req
=
'
return undef
unless ref $that eq
\'
Sympa::List
\'
;
';
$req
=
'
die "No list context"
unless ref $that eq
\'
Sympa::List
\'
;
';
}
elsif
(
$_
eq
'
message
')
{
$req
=
sprintf
'
$context->{message} ||= Sympa::Message->new("\n");
';
}
else
{
$req
=
sprintf
'
return undef
unless exists $context->{%s};
',
$_
;
$req
=
sprintf
'
die "Missing parameter
\'
%s
\'
"
unless exists $context->{%s};
',
$_
,
$_
;
}
"
$req
";
}
sort
keys
%required
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment