Skip to content

Commit

Permalink
Improve exit message for missing command line arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
catrinmey committed Nov 21, 2024
1 parent 0c85aab commit 7b84ab9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/trac_fortran.f90
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ PROGRAM trac_fortran
argc = command_argument_count()

IF (argc < 4) THEN
WRITE(*,*) "Give parameters: <dirlist> <ctl> <atm_in>"
CALL ABORT
WRITE(*,*) "Error: Give parameters: <dirlist> <ctl> <atm_in>"
CALL EXIT
ENDIF

ALLOCATE(tmp(argc), argv_ptrs(argc))
Expand All @@ -58,8 +58,8 @@ PROGRAM trac_fortran
! Open directory list...
OPEN(10,file=tmp(1),iostat=stat)
IF (stat .ne. 0) THEN
WRITE(*,*) "Cannot open directory list!"
CALL ABORT
WRITE(*,*) "Error: Cannot open directory list!"
CALL EXIT
ENDIF

DO WHILE (1 .eq. 1)
Expand Down

0 comments on commit 7b84ab9

Please sign in to comment.