Sync: throw exception on erraneous data

This commit is contained in:
Thomas Gelf 2016-01-19 16:33:04 +01:00
parent 848e2d2f74
commit 56c357bfb0
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class Sync
$parts = explode('.', $var);
$main = array_shift($parts);
if (! is_object($row->$main)) {
die('Data is not nested, cannot access ...');
throw new IcingaException('Data is not nested, cannot access %s: %s', $var, var_export($row, 1));
}
return $this->getDeepValue($row->$main, $parts);