diff options
author | Thomas White <taw@physics.org> | 2015-03-02 15:24:47 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-03-02 15:25:22 +0100 |
commit | c7ce42aa2390c063d121025b272603989a315fda (patch) | |
tree | db5918cb2642bdddbafb3322eb90e29ac6dbe528 /src/process_hkl.c | |
parent | e858a8817cf9a49adff2a06b3f62aa97a6270c60 (diff) |
process_hkl: Improve errors a bit
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r-- | src/process_hkl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c index fbbf4ff0..9e91ee83 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -3,12 +3,12 @@ * * Assemble and process FEL Bragg intensities * - * Copyright © 2012-2014 Deutsches Elektronen-Synchrotron DESY, + * Copyright © 2012-2015 Deutsches Elektronen-Synchrotron DESY, * a research centre of the Helmholtz Association. * Copyright © 2012 Lorenzo Galli * * Authors: - * 2009-2014 Thomas White <taw@physics.org> + * 2009-2015 Thomas White <taw@physics.org> * 2011 Andrew Martin <andrew.martin@desy.de> * 2012 Lorenzo Galli <lorenzo.galli@desy.de> * 2014 Chunhong Yoon <chun.hong.yoon@desy.de> @@ -561,7 +561,8 @@ int main(int argc, char *argv[]) errno = 0; start_after = strtod(optarg, &rval); if ( *rval != '\0' ) { - ERROR("Invalid value for --start-after.\n"); + ERROR("Invalid value for --start-after (%s)\n", + optarg); return 1; } break; @@ -570,7 +571,8 @@ int main(int argc, char *argv[]) errno = 0; stop_after = strtod(optarg, &rval); if ( *rval != '\0' ) { - ERROR("Invalid value for --stop-after.\n"); + ERROR("Invalid value for --stop-after (%s)\n", + optarg); return 1; } break; |