Skip to content

Commit 0647380

Browse files
committed
Slightly tweak log parse error message
1. make sure parse errors are printed. Setting `print_debug = True` didn't work reliably. 2. give user a chance to find the error in a log file, by printing location.
1 parent c9f7f72 commit 0647380

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

latextools/utils/tex_log.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,9 @@ def handle_badbox(l):
652652
reprocess_extra = True
653653
continue
654654
else:
655-
parsing.append("PERR [')' no files]")
656-
debug(f"PERR [')' no files] ({line_num})")
655+
msg = f"PERR [')' no files] ({line_num})"
656+
parsing.append(msg)
657+
debug(msg)
657658
break
658659

659660
# Opening page indicators: skip and reprocess
@@ -806,9 +807,9 @@ def handle_badbox(l):
806807
# If there were parsing issues, output them to debug
807808
if parsing:
808809
warnings.append("(Log parsing issues. Disregard unless something else is wrong.)")
809-
print_debug = True
810810
for l in parsing:
811-
debug(l)
811+
print(f"parseTeXlog: {l}")
812+
812813
return (errors, warnings, badboxes)
813814

814815

0 commit comments

Comments
 (0)