Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py

changeset 4503
d68dcbe1deb3
parent 4235
81278aff6af9
child 4631
5c1a96925da4
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py	Tue Oct 20 19:19:12 2015 +0200
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py	Thu Oct 22 19:48:40 2015 +0200
@@ -28,9 +28,11 @@
     @signal syntaxChecked(str, dict) emitted when the syntax check was done for
         one file
     @signal batchFinished() emitted when a syntax check batch is done
+    @signal error(str, str) emitted in case of an error
     """
     syntaxChecked = pyqtSignal(str, dict)
     batchFinished = pyqtSignal()
+    error = pyqtSignal(str, str)
     
     def __init__(self):
         """
@@ -183,7 +185,7 @@
         @param fn file name (string)
         @param msg message text (string)
         """
-        self.syntaxChecked.emit(fn, {'warnings': [(fn, 1, 0, '', msg)]})
+        self.error.emit(fn, msg)
     
     def serviceErrorPy2(self, fx, lang, fn, msg):
         """

eric ide

mercurial