Returns the log content in case of TeX error.

It provides more useful information in case of errors than what's
printed to stdout.