Added an option to build.py that will expand the error logs if an error occurs.

This should be useful for travis.ci