aboutsummaryrefslogtreecommitdiff
path: root/src/patch/test_patch_system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch/test_patch_system.cc')
-rw-r--r--src/patch/test_patch_system.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/patch/test_patch_system.cc b/src/patch/test_patch_system.cc
index 9d8d220..904866a 100644
--- a/src/patch/test_patch_system.cc
+++ b/src/patch/test_patch_system.cc
@@ -229,7 +229,9 @@ else if (STRING_EQUAL(argv[6], "deriv.all"))
which_test = test_deriv;
which_derivs = which_deriv_all;
}
-else error_exit(ERROR_EXIT, "%s", help_msg); /*NOTREACHED*/
+else error_exit(ERROR_EXIT,
+ "unknown which_test=\"%s\"!\n",
+ argv[6]); /*NOTREACHED*/
int gfn_to_print = (which_test == test_fn) ? gfn_fn : gfn_error;
if (argc >= 8)
@@ -244,6 +246,9 @@ if (argc >= 8)
then gfn_to_print = gfn_deriv_analytic;
else if (STRING_EQUAL(argv[7], "error"))
then gfn_to_print = gfn_error;
+ else error_exit(ERROR_EXIT,
+ "unknown gfn_to_print=\"%s\"!\n",
+ argv[7]); /*NOTREACHED*/
}
//