Commit 22d0f96e authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #392 in ZP/z-push from bugfix/ZP-1076-z-push-admin-stops-on-invalid-states to develop

* commit 'add4c8de':
  ZP-1076 Catch StatusException in ZPushAdmin::GetDeviceDetails().
parents de78a050 add4c8de
......@@ -113,6 +113,10 @@ class ZPushAdmin {
ZLog::Write(LOGLEVEL_WARN, sprintf("ZPushAdmin::GetDeviceDetails(): device '%s' of user '%s' has invalid states. Please sync to solve this issue.", $devid, $user));
$device->SetDeviceError("Invalid states. Please force synchronization!");
}
catch (StatusException $ste) {
ZLog::Write(LOGLEVEL_WARN, sprintf("ZPushAdmin::GetDeviceDetails(): device '%s' of user '%s' has status exceptions. Please sync to solve this issue.", $devid, $user));
$device->SetDeviceError("State exceptions. Please force synchronization or remove device to fix!");
}
if ($sc) {
if ($sc->GetLastSyncTime())
......
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