]> arthur.barton.de Git - netdata.git/commitdiff
more descriptive error messages
authorpaulfantom <paulfantom@gmail.com>
Sun, 7 Aug 2016 11:57:55 +0000 (13:57 +0200)
committerpaulfantom <paulfantom@gmail.com>
Sun, 7 Aug 2016 11:57:55 +0000 (13:57 +0200)
plugins.d/python.d.plugin

index 085d4fc7cfe9beb83a5c4fc6741c770957e3b448..1301777bee9debbd70108b093a4116297b8d459c 100755 (executable)
@@ -353,7 +353,7 @@ class PythonCharts(object):
                         pass
             except AttributeError as e:
                 self._stop(job)
-                msg.error(job.chart_name, "cannot find check() function.")
+                msg.error(job.chart_name, "cannot find check() function or it thrown unhandled exception.")
                 msg.debug(str(e))
             except (UnboundLocalError, Exception) as e:
                 msg.error(job.chart_name, str(e))
@@ -390,7 +390,7 @@ class PythonCharts(object):
                     # sys.stdout.flush()
                     i += 1
             except AttributeError:
-                msg.error(job.chart_name, "cannot find create() function.")
+                msg.error(job.chart_name, "cannot find create() function or it thrown unhandled exception.")
                 self._stop(job)
             except (UnboundLocalError, Exception) as e:
                 msg.error(job.chart_name, str(e))