Commit 51386bd0 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #357 in ZP/z-push from...

Merge pull request #357 in ZP/z-push from bugfix/ZP-1039-z-push-admin-returns-exit-code-0 to develop

* commit '102507ff':
  ZP-1039 Don't use die() to terminate in error case for gab-sync.
  ZP-1039 Don't use die() to terminate in error case for z-push-admin.

Conflicts:
	tools/gab-sync/gab-sync.php
parent 3a505531
...@@ -122,7 +122,8 @@ include('version.php'); ...@@ -122,7 +122,8 @@ include('version.php');
ZPushAdminCLI::RunCommand(); ZPushAdminCLI::RunCommand();
} }
catch (ZPushException $zpe) { catch (ZPushException $zpe) {
die(get_class($zpe) . ": ". $zpe->getMessage() . "\n"); fwrite(STDERR, get_class($zpe) . ": ". $zpe->getMessage() . "\n");
exit(1);
} }
...@@ -936,4 +937,4 @@ class ZPushAdminCLI { ...@@ -936,4 +937,4 @@ class ZPushAdminCLI {
} }
?> ?>
\ No newline at end of file
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