Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
710427cc
Unverified
Commit
710427cc
authored
Dec 07, 2020
by
IKEDA Soji
Committed by
GitHub
Dec 07, 2020
Browse files
Merge pull request #1043 from racke/pr/soap-client-proper-exit-code by racke
Add proper exit code on errors to SOAP client script.
parents
16ebe7f7
ac6a7fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/sympa_soap_client.pl.in
View file @
710427cc
...
...
@@ -84,7 +84,7 @@ my $soap_url = $main::options{'soap_url'};
unless
(
defined
$soap_url
)
{
printf
"
error : missing soap_url parameter
\n
";
printf
$usage
;
exit
;
exit
1
;
}
my
$user_email
=
$
main::
options
{'
user_email
'};
...
...
@@ -102,17 +102,17 @@ if (defined $trusted_application) {
unless
(
defined
$trusted_application_password
)
{
printf
"
error : missing trusted_application_password parameter
\n
";
printf
$usage
;
exit
;
exit
1
;
}
unless
(
defined
$service
)
{
printf
"
error : missing service parameter
\n
";
printf
$usage
;
exit
;
exit
1
;
}
unless
(
defined
$proxy_vars
)
{
printf
"
error : missing proxy_vars parameter
\n
";
printf
$usage
;
exit
;
exit
1
;
}
play_soap_as_trusted
(
$soap_url
,
$trusted_application
,
...
...
@@ -128,14 +128,14 @@ if (defined $trusted_application) {
}
elsif
(
defined
$cookie
)
{
printf
"
error : get_email_cookie
\n
";
get_email
(
$soap_url
,
$cookie
);
exit
;
exit
1
;
}
else
{
unless
(
defined
$session_id
||
(
defined
$user_email
&&
defined
$user_password
))
{
printf
"
error : missing session_id OR user_email+user_passwors parameters
\n
";
printf
$usage
;
exit
;
exit
1
;
}
play_soap
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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