Commit a9192351 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.
parents 6c1f546a 102507ff
......@@ -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);
}
......
......@@ -70,7 +70,8 @@ include_once(SYNC_CONFIG);
GabSyncCLI::RunCommand();
}
catch (Exception $ex) {
die(get_class($ex) . ": ". $ex->getMessage() . PHP_EOL);
fwrite(STDERR, get_class($ex) . ": ". $ex->getMessage() . PHP_EOL);
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