Code

oping: Print the error message if ping_send failes.
authorFlorian Forster <octo@crystal.wlan.home.verplant.org>
Fri, 16 Jun 2006 17:04:52 +0000 (19:04 +0200)
committerFlorian Forster <octo@crystal.wlan.home.verplant.org>
Fri, 16 Jun 2006 17:04:52 +0000 (19:04 +0200)
src/oping.c

index 8bc119ebc3c7e33c3276a86bdedc203f9a41484f..63de91742b636a58d65c315403f1f2ad8c643ebe 100644 (file)
@@ -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);
                }