* camel-session.c (get_store_for_protocol_with_url): Set the
exception if no provider is found.
2000-04-17 Dan Winship <danw@helixcode.com>
+ * camel-session.c (get_store_for_protocol_with_url): Set the
+ exception if no provider is found.
+
* camel-url.c: Add code to encode and decode %-escapes in URLs,
and do some additional correctness-checking on URL syntax. From
Tiago Antà o with modifications by me.
*/
provider = camel_provider_get_for_protocol (protocol, PROVIDER_STORE);
}
- if (!provider)
+ if (!provider) {
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
+ "No provider available for protocol "
+ "`%s'", protocol);
return NULL;
+ }
return CAMEL_STORE (camel_service_new (provider->object_type,
session, url, ex));