diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-21 00:05:04 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-21 00:05:04 +0200 |
commit | 9b46b64b83314a177a7ca3f9f990ff8c78282a5a (patch) | |
tree | 7a8dc81f8f3edea18de8b59648d1be448e848122 /storage_xml.c | |
parent | ece2cd2eba78088a8cf9d4744aafb3f34dc97c5b (diff) |
Fixed error message for unknown protocols.
Diffstat (limited to 'storage_xml.c')
-rw-r--r-- | storage_xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage_xml.c b/storage_xml.c index 87fbb693..737f2091 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -136,12 +136,12 @@ static void xml_start_element( GMarkupParseContext *ctx, const gchar *element_na if( protocol ) prpl = find_protocol( protocol ); - if( !handle || !password ) + if( !handle || !password || !protocol ) g_set_error( error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, "Missing attributes for %s element", element_name ); else if( !prpl ) g_set_error( error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT, - "Missing or unknown protocol %s element", element_name ); + "Unknown protocol: %s", protocol ); else { xd->current_account = account_add( irc, prpl, handle, password ); |