Просмотр исходного кода

Ignore bib parse errors (#5874)

GitOrigin-RevId: 05c214762585b4d3d35ed055e1764d472b9cc861
Miguel Serrano 4 лет назад
Родитель
Сommit
ec065147fb
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      services/web/frontend/js/features/pdf-preview/util/output-files.js

+ 6 - 3
services/web/frontend/js/features/pdf-preview/util/output-files.js

@@ -104,9 +104,12 @@ export const handleOutputFiles = async (projectId, data) => {
 
 
     const log = await response.text()
     const log = await response.text()
 
 
-    const { errors, warnings } = new BibLogParser(log, {}).parse()
-
-    accumulateResults({ errors, warnings }, 'BibTeX:')
+    try {
+      const { errors, warnings } = new BibLogParser(log, {}).parse()
+      accumulateResults({ errors, warnings }, 'BibTeX:')
+    } catch (e) {
+      // BibLog parsing errors are ignored
+    }
   }
   }
 
 
   result.fileList = buildFileList(outputFiles, data.clsiServerId)
   result.fileList = buildFileList(outputFiles, data.clsiServerId)