Raise error message on discovery error