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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 24ca3b964d..6ec2c5f1cf 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -291,13 +291,9 @@ camel_session_get_service (CamelSession *session, const char *url_string,
CamelProvider *provider;
CamelService *service;
- url = camel_url_new (url_string);
- if (!url) {
- camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_URL_INVALID,
- _("Could not parse URL `%s'"),
- url_string);
+ url = camel_url_new (url_string, ex);
+ if (!url)
return NULL;
- }
/* We need to look up the provider so we can then lookup
the service in the provider's cache */