Improve error reporting - report error message when there is one, or

report a short read if that's what we're reporting.
This commit is contained in:
fenner 2002-02-27 22:38:59 +00:00
parent 095aa99d6e
commit 70babecdeb

View File

@ -227,7 +227,10 @@ logmessage(int pri, char *host, char *buf)
break;
}
if (lsent != len)
warnx ("sendmsg");
if (lsent == -1)
warn ("sendto");
else
warnx ("sendto: short send - %d bytes", lsent);
free(line);
}