mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
Sync: throw exception on erraneous data
This commit is contained in:
parent
848e2d2f74
commit
56c357bfb0
@ -152,7 +152,7 @@ class Sync
|
|||||||
$parts = explode('.', $var);
|
$parts = explode('.', $var);
|
||||||
$main = array_shift($parts);
|
$main = array_shift($parts);
|
||||||
if (! is_object($row->$main)) {
|
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);
|
return $this->getDeepValue($row->$main, $parts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user