mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
"dcc error file not found" -> "dcc error file open". Print the actual error
message based on errno, don't just assume the file wasn't found. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1471 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
54ffbf9c57
commit
cb28685574
6 changed files with 13 additions and 9 deletions
|
|
@ -132,7 +132,8 @@ static void dcc_send_resume(GET_DCC_REC *dcc)
|
|||
dcc->file = dcc_get_download_path(dcc->arg);
|
||||
dcc->fhandle = open(dcc->file, O_WRONLY);
|
||||
if (dcc->fhandle == -1) {
|
||||
signal_emit("dcc error file not found", 2, dcc, dcc->file);
|
||||
signal_emit("dcc error file open", 3, dcc->nick, dcc->file,
|
||||
GINT_TO_POINTER(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,8 @@ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server,
|
|||
g_free(str);
|
||||
|
||||
if (hfile == -1) {
|
||||
signal_emit("dcc error file not found", 2, target, fname);
|
||||
signal_emit("dcc error file open", 3, target, fname,
|
||||
GINT_TO_POINTER(errno));
|
||||
cmd_params_free(free_arg);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue