I definitely agree that error handling should be improved. I'm trying to keep the LaTeX output as portable/minimal as possible though so I'm not sure if highlights are doable. My current plan is to output more diagnostic info and let the JS interface figure it out.