Changeset 7320610 for storage_xml.c
- Timestamp:
- 2015-03-10T07:33:54Z (9 years ago)
- Branches:
- master
- Children:
- afbad28
- Parents:
- 8b91a1f
- git-author:
- dequis <dx@…> (07-03-15 04:10:59)
- git-committer:
- dequis <dx@…> (10-03-15 07:33:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
r8b91a1f r7320610 103 103 if (protocol) { 104 104 prpl = find_protocol(protocol); 105 if (!prpl) { 106 irc_rootmsg(xd->irc, "Error loading user config: Protocol not found: `%s'", protocol); 107 return XT_ABORT; 108 } 105 109 local = protocol_account_islocal(protocol); 106 110 } … … 197 201 fn = g_strconcat(global.conf->configdir, xd->given_nick, ".xml", NULL); 198 202 if ((fd = open(fn, O_RDONLY)) < 0) { 199 ret = STORAGE_NO_SUCH_USER; 203 if (errno == ENOENT) { 204 ret = STORAGE_NO_SUCH_USER; 205 } else { 206 irc_rootmsg(irc, "Error loading user config: %s", g_strerror(errno)); 207 } 200 208 goto error; 201 209 } … … 377 385 strcat(path, ".XXXXXX"); 378 386 if ((fd = mkstemp(path)) < 0) { 379 irc_rootmsg(irc, "Error while opening configuration file."); 380 return STORAGE_OTHER_ERROR; 387 goto error; 381 388 } 382 389 … … 400 407 401 408 error: 402 irc_rootmsg(irc, "Write error . Disk full?");409 irc_rootmsg(irc, "Write error: %s", g_strerror(errno)); 403 410 ret = STORAGE_OTHER_ERROR; 404 411
Note: See TracChangeset
for help on using the changeset viewer.