Pass the ENV hash into the BuildError constructor
Remove unused attribute from BuildError