get output of xelatex as error message