Commit dfe66354 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1039 Don't use die() to terminate in error case for z-push-admin.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 6c1f546a
......@@ -75,7 +75,8 @@ include_once(ZPUSH_CONFIG);
ZPushAdminCLI::RunCommand();
}
catch (ZPushException $zpe) {
die(get_class($zpe) . ": ". $zpe->getMessage() . "\n");
fwrite(STDERR, get_class($zpe) . ": ". $zpe->getMessage() . "\n");
exit(1);
}
......
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