cmake_traceparser: ignore parse error

This commit is contained in:
Michael Hirsch 2020-06-07 23:16:26 -04:00 committed by Dylan Baker
parent 8edbb2859c
commit 477cacf155
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class CMakeTraceParser:
if not self.requires_stderr():
if not self.trace_file_path.exists and not self.trace_file_path.is_file():
raise CMakeException('CMake: Trace file "{}" not found'.format(str(self.trace_file_path)))
trace = self.trace_file_path.read_text()
trace = self.trace_file_path.read_text(errors='ignore')
if not trace:
raise CMakeException('CMake: The CMake trace was not provided or is empty')