aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c6
1 files changed, 5 insertions, 1 deletions
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));