aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-18 03:38:16 +0800
committerDan Winship <danw@src.gnome.org>2000-04-18 03:38:16 +0800
commit4f686ae899ee11715d0f7e8a9447dbee404ab857 (patch)
tree7c7c77f5ea6523f115f5c89c40232c4b22b160a1 /camel/camel-session.c
parente3e8d0d135025a5cdd6188c16e4e7c84374847d6 (diff)
downloadgsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.tar
gsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.tar.gz
gsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.tar.bz2
gsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.tar.lz
gsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.tar.xz
gsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.tar.zst
gsoc2013-evolution-4f686ae899ee11715d0f7e8a9447dbee404ab857.zip
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
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));