error logging when build fails