diff options
author | Timo Sirainen <cras@irssi.org> | 2001-05-11 12:43:59 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-05-11 12:43:59 +0000 |
commit | cb2868557491ce3d1d61d6d55811a80a387efe4f (patch) | |
tree | 9c5eb3a8a200daad59d37bf88307b9a8a630aa73 /src/irc/dcc/dcc-resume.c | |
parent | 54ffbf9c57a623af4ad8a3909444c6827ca4c610 (diff) | |
download | irssi-cb2868557491ce3d1d61d6d55811a80a387efe4f.zip |
"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
Diffstat (limited to 'src/irc/dcc/dcc-resume.c')
-rw-r--r-- | src/irc/dcc/dcc-resume.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-resume.c b/src/irc/dcc/dcc-resume.c index f97f6ae9..899a7475 100644 --- a/src/irc/dcc/dcc-resume.c +++ b/src/irc/dcc/dcc-resume.c @@ -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; } |