diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-09-14 19:23:49 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-09-14 19:23:49 +0000 |
commit | 34e979ac6db795eb9c8c3ea1612699525d5be574 (patch) | |
tree | 5bbce7ca9ff0531967281614143e45834718664c /src/patch/test_patch_system.cc | |
parent | 21f4601fde45c17b6582c64654c104468c483965 (diff) |
add more error-checking for cmd-line args
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@341 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/test_patch_system.cc')
-rw-r--r-- | src/patch/test_patch_system.cc | 7 |
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*/ } // |