Skip to content
Snippets Groups Projects
Commit f166f3f5 authored by Tibo's avatar Tibo
Browse files

fix error handling

parent a0f0cba4
No related branches found
No related tags found
No related merge requests found
Pipeline #3762 passed
......@@ -35,7 +35,7 @@ class SensorWrapper
$this->report = $this->sensor->report($this->records);
} catch (\Exception $ex) {
Log::error('Sensor failed : ' . $ex->getTraceAsString());
$this->report = "<p>Sensor " . $this->getName() . " failed :-(</p>";
$this->report = "<p>Sensor " . $this->name() . " failed :-(</p>";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment