X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ferrors%2FErrorLog.java;h=2287f919bbea59a99d55f123e46d107bff31e076;hp=dbd2c3fe9d1bf287aaaf72e811dde0d2822d59bb;hb=e73c1660b2f4d2a03784451e9e6afe1552b00877;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/errors/ErrorLog.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/errors/ErrorLog.java index dbd2c3fe9..2287f919b 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/errors/ErrorLog.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/errors/ErrorLog.java @@ -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(); + } }