From: Florian Forster Date: Fri, 16 Jun 2006 17:04:52 +0000 (+0200) Subject: oping: Print the error message if ping_send failes. X-Git-Tag: liboping-0.3.0~3^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=307943f23d8bc461148f33ece340a0f1bb141c80;p=liboping.git oping: Print the error message if ping_send failes. --- diff --git a/src/oping.c b/src/oping.c index 8bc119e..63de917 100644 --- a/src/oping.c +++ b/src/oping.c @@ -372,7 +372,8 @@ int main (int argc, char **argv) if (ping_send (ping) < 0) { - fprintf (stderr, "ping_send failed\n"); + fprintf (stderr, "ping_send failed: %s\n", + ping_get_error (ping)); return (1); }