]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/errors/ErrorLog.java
Improvements to SCL compiler error messages
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / errors / ErrorLog.java
index dbd2c3fe9d1bf287aaaf72e811dde0d2822d59bb..2287f919bbea59a99d55f123e46d107bff31e076 100644 (file)
@@ -56,4 +56,13 @@ public class ErrorLog {
             b.append(error.description).append('\n');
         return b.toString();
     }
+    
+    @Override
+    public String toString() {
+        return getErrorsAsString();
+    }
+
+    public int getErrorCount() {
+        return errors.size();
+    }
 }