Add a script error message iterator.

This is used to parse and iterate over the error output message produced by a script.