Report full traceback when highlighting fails
This commit is contained in:
parent
8300436481
commit
ff80b906d0
@ -167,7 +167,9 @@ def highlight_collection(collection: Collection, aliases: Optional[Dict[str, str
|
|||||||
try:
|
try:
|
||||||
highlights = future.result()
|
highlights = future.result()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return f'Running syntax highlighting for {path} generated an exception: {e}'
|
import traceback
|
||||||
|
tb = traceback.format_exc()
|
||||||
|
return f'Running syntax highlighting for {path} generated an exception: {e} with traceback:\n{tb}'
|
||||||
ans[path] = highlights
|
ans[path] = highlights
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user