File tree Expand file tree Collapse file tree
src/main/java/edu/uiowa/cs/clc/kind2/results Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,31 +126,11 @@ private void analyze() {
126126 if (root == null ) {
127127 // if the root object is null at this point, then we couldn't parse the json output properly.
128128 // It makes sense to throw kind2 errors found in the log objects.
129- throwKind2Errors ();
130129 return ;
131130 }
132131 root .analyze ();
133132 }
134133
135- /**
136- * throw a {@link RuntimeException} if at least one of kind2 logs is error, fatal, or off.
137- */
138- private void throwKind2Errors () {
139- StringBuilder stringBuilder = new StringBuilder ();
140- stringBuilder
141- .append ("An error has occurred during kind2 analysis. Please check the following logs:\n " );
142- boolean someError = false ;
143- for (Log log : kind2Logs ) {
144- if (log .getLevel () == LogLevel .error || log .getLevel () == LogLevel .fatal
145- || log .getLevel () == LogLevel .off ) {
146- stringBuilder .append (log + "\n " );
147- someError = true ;
148- }
149- }
150- if (someError ) {
151- throw new RuntimeException (stringBuilder .toString ());
152- }
153- }
154134
155135 @ Override
156136 public String toString () {
You can’t perform that action at this time.
0 commit comments