From b235742472c083e7fe97183269f671ac763241ff Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Fri, 14 Jul 2023 10:23:23 -0400 Subject: [PATCH] clearer error messages --- src/CLI.f90 | 6 +++--- src/IO.f90 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CLI.f90 b/src/CLI.f90 index ce2f68ed7..ed7fbcd5e 100644 --- a/src/CLI.f90 +++ b/src/CLI.f90 @@ -183,9 +183,9 @@ subroutine CLI_init() end select end do - if (.not. allocated(geomArg)) call IO_error(612,ext_msg='--help for instructions',label1='--geom') - if (.not. allocated(loadArg)) call IO_error(612,ext_msg='--help for instructions',label1='--load') - if (.not. allocated(materialArg)) call IO_error(612,ext_msg='--help for instructions',label1='--material') + if (.not. allocated(geomArg)) call IO_error(612,ext_msg='--geom') + if (.not. allocated(loadArg)) call IO_error(612,ext_msg='--load') + if (.not. allocated(materialArg)) call IO_error(612,ext_msg='--material') call setWorkingDirectory(trim(workingDirArg)) CLI_geomFile = getPathRelCWD(geomArg,'geometry') diff --git a/src/IO.f90 b/src/IO.f90 index 86eb6558e..0a8f7b07e 100644 --- a/src/IO.f90 +++ b/src/IO.f90 @@ -556,11 +556,11 @@ subroutine IO_error(error_ID,ext_msg,label1,ID1,label2,ID2) case (603) msg = 'invalid data for table' case (610) - msg = 'no argument value specified' + msg = 'missing argument for option' case (611) msg = 'could not parse restart increment' case (612) - msg = 'missing argument' + msg = 'missing option' case (630) msg = 'JOBNAME must not contain any slashes' case (640)