verbose error for invalid environment on protect