better debugging when xelatex fails