]> git.gsnw.org Git - fping.git/commitdiff
Change of the JSON return text if -c or -C was not specified
authorGerman Service Network <support@gsnw.de>
Wed, 30 Apr 2025 19:56:03 +0000 (21:56 +0200)
committerSebastian <176771227+gsnw-sebast@users.noreply.github.com>
Sat, 12 Jul 2025 05:43:18 +0000 (07:43 +0200)
ci/test-16-json-output.pl
src/fping.c

index 84fa3a187da2accbb8482e5ba8eba2e49f87fb29..bcf159d5702a088f9eae5a9965076f9ddec86327 100644 (file)
@@ -189,5 +189,5 @@ $cmd->stderr_is_eq("");
 my $cmd = Test::Command->new(cmd => "fping -J 127.0.0.1");
 $cmd->exit_is_num(1);
 $cmd->stdout_is_eq("");
-$cmd->stderr_is_eq("fping: with -J or --json required -c or -C\n");
+$cmd->stderr_is_eq("fping: option -J, --json requires -c or -C\n");
 }
index a06f9f054815151644961fcd04a6eea3b9998aa9..bb60a666c2f201272e70b5110495fcf5d52231ac 100644 (file)
@@ -1012,7 +1012,7 @@ int main(int argc, char **argv)
     }
 
     if (json_flag && !count_flag) {
-        fprintf(stderr, "%s: with -J or --json required -c or -C\n", prog);
+        fprintf(stderr, "%s: option -J, --json requires -c or -C\n", prog);
         exit(1);
     }