Commit 3a0f9e11 authored by Guillaume Rousse's avatar Guillaume Rousse

exit with error status for new errors too

parent f0b84613
......@@ -109,7 +109,8 @@ if (isset($options['min-sp-count'])) {
} elseif (preg_match('/^\d+$/', $options['min-sp-count'])) {
$minSPCount = $options['min-sp-count'];
} else {
exit("Exiting: invalid value for --min-sp-count parameter\n");
reportError("Exiting: invalid value for --min-sp-count parameter\n");
exit(1);
}
} else {
$minSPCount = 0;
......@@ -127,7 +128,8 @@ if (isset($options['min-idp-count'])) {
} elseif (preg_match('/^\d+$/', $options['min-idp-count'])) {
$minIDPCount = $options['min-idp-count'];
} else {
exit("Exiting: invalid value for --min-idp-count parameter\n");
reportError("Exiting: invalid value for --min-idp-count parameter\n");
exit(1);
}
} else {
$minIDPCount = 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