quicktex: Better error handling