made error code in environment nicer

Signed-off-by: Stuart Long <srl51@case.edu>