mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Throws Exception in constructor for error in first serie
This commit is contained in:
@@ -41,6 +41,10 @@ class ResultSet
|
|||||||
// There was an error in the query thrown by influxdb
|
// There was an error in the query thrown by influxdb
|
||||||
if (isset($this->parsedResults['error'])) {
|
if (isset($this->parsedResults['error'])) {
|
||||||
throw new InfluxDBClientError($this->parsedResults['error']);
|
throw new InfluxDBClientError($this->parsedResults['error']);
|
||||||
|
|
||||||
|
// Check if there are errors in the first serie
|
||||||
|
} elseif (isset($this->parsedResults['results'][0]['error'])) {
|
||||||
|
throw new InfluxDBClientError($this->parsedResults['results'][0]['error']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,7 @@ EOD;
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
EOD;
|
EOD;
|
||||||
$rs = new ResultSet($errorResult);
|
new ResultSet($errorResult);
|
||||||
$rs->getSeries();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user