Trim line length in error generator

in #751 @JonRowe suggested trimming the line length in error_generator.rb. This patch does that via use of a string join over the parts of the string that were getting built. I prefer this solution to breaking a long string over many lines or shovelling because parts can easily be added/removed from the lists that are joined together.

Thoughts?