style(discovery): add clarity to error handling