Skip to content

Commit

Permalink
fix: add logging for CalledProcessError
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaliafab committed Jul 1, 2024
1 parent 2e223ee commit 1af755b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from os import makedirs, path
from time import time
from typing import List
from subprocess import CalledProcessError

from nimrod.tests.utils import get_config
from nimrod.core.merge_scenario_under_analysis import MergeScenarioUnderAnalysis
Expand Down Expand Up @@ -73,6 +74,7 @@ def _compile_test_suite(self, input_jar: str, test_suite_path: str, extra_class_
try:
self._java.exec_javac(java_file, test_suite_path, None, None,
'-classpath', class_path, '-d', compiled_classes_path)
except:
pass
except CalledProcessError:
logging.error(f"Error while compiling {java_file}")
continue
return class_path

0 comments on commit 1af755b

Please sign in to comment.