Improve error message handling when submitting builds