]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
send_common: Improve error diagnostics of generic_com_on().
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 17 Mar 2018 01:10:55 +0000 (02:10 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 17 Apr 2018 07:29:57 +0000 (09:29 +0200)
Currently the function returns an error code but does not log a message
on errors. The callers, http_send_init() and dccp_send_init(), print
the strerror text with no indication that it is was generic_com_on()
which caused the error.

This commit moves the log messages from the callers to generic_com_on()
and changes the return type of generic_com_on() to void because both
callers now ignore the return value. The new log messages include a
text which tells the user what went wrong.


No differences found