@cryptotaxi247 / netdata-1 / commits / 1e7298ade

more descriptive error messages

paulfantom committed Aug 7, 2016 at 13:57 UTC 1e7298ade4331bce77a488b8e68302caeff08f61
1 file changed +2 -2
plugins.d/python.d.plugin
+2 -2
@@ -353,7 +353,7 @@ class PythonCharts(object):
353 pass
354 except AttributeError as e:
355 self._stop(job)
356 - msg.error(job.chart_name, "cannot find check() function.")
356 + msg.error(job.chart_name, "cannot find check() function or it thrown unhandled exception.")
357 msg.debug(str(e))
358 except (UnboundLocalError, Exception) as e:
359 msg.error(job.chart_name, str(e))
@@ -390,7 +390,7 @@ class PythonCharts(object):
390 # sys.stdout.flush()
391 i += 1
392 except AttributeError:
393 - msg.error(job.chart_name, "cannot find create() function.")
393 + msg.error(job.chart_name, "cannot find create() function or it thrown unhandled exception.")
394 self._stop(job)
395 except (UnboundLocalError, Exception) as e:
396 msg.error(job.chart_name, str(e))