Skip to content

Commit 5cfcd38

Browse files
committed
clean up error handling
1 parent bc57256 commit 5cfcd38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/jf_test_53.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ subroutine test_53(error_cnt)
5757
call json%get_child(p_root, 1, p_child) ! get the first one
5858
do i = 1, count
5959
call json%info(p_child, name=key) ! get the key name
60-
write(output_unit,'(A,I0,A,A)') 'Key ', i, ': ', trim(key)
60+
write(output_unit,'(A,I3,A,A)') 'Key ', i, ': ', trim(key)
6161
if (key /= expected_keys(i)) then
6262
error_cnt = error_cnt + 1
63-
write(error_unit,'(A,I0,A,A)') 'Error: expected key ', i, ' to be ', &
64-
trim(expected_keys(i)), ' but got ', trim(key)
63+
write(error_unit,'(A,I3,A)') ' Error: expected key ', i, ' to be "'// &
64+
trim(expected_keys(i))//'" but got "'//trim(key)//'"'
6565
end if
6666
! get the next one (more efficient than calling get_child again)
6767
if (i<count) call json%get_next(p_child, p_child)

0 commit comments

Comments
 (0)