Commit a4fa0b54 authored by root's avatar root
Browse files

Fix : sympa.pl --instantiate_family did not return errors if there was only...

Fix : sympa.pl --instantiate_family did not return errors if there was only one. Also did return status 0 wen we encoutered errors
parent f88d6750
......@@ -780,8 +780,9 @@ if ($main::options{'dump'} or $main::options{'dump_users'}) {
print STDOUT "@{$result{'info'}}";
print STDOUT "@{$result{'warn'}}";
}
if ($err) {
if ($err >= 0) {
print STDERR "@{$result{'errors'}}";
exit 1;
}
exit 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment