show env for error only in debug mode