Revert "Get all lines of error output into tex log string."

This reverts commit b5d2115b6056b86794aaf35ef405870c53991e62.
Handle multiple instances of error lines.
Code cleanup.