Sync: throw exception on erraneous data
This commit is contained in:
parent
848e2d2f74
commit
56c357bfb0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue