From 4f686ae899ee11715d0f7e8a9447dbee404ab857 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 17 Apr 2000 19:38:16 +0000 Subject: Set the exception if no provider is found. * camel-session.c (get_store_for_protocol_with_url): Set the exception if no provider is found. svn path=/trunk/; revision=2477 --- camel/camel-session.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 6cf8da12d5..7b672c5c60 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -185,8 +185,12 @@ get_store_for_protocol_with_url (CamelSession *session, const char *protocol, */ 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)); -- cgit v1.2.3