Better error message when discovery Environment is missing