Skip to content

Commit 4c54f79

Browse files
committed
fixed unicode build.
1 parent 961b204 commit 4c54f79

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/json_value_module.F90

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,14 +1997,18 @@ end subroutine json_throw_exception
19971997
!>
19981998
! Alternate version of [[json_throw_exception]], where `msg` is kind=CDK.
19991999

2000-
subroutine wrap_json_throw_exception(json,msg)
2000+
subroutine wrap_json_throw_exception(json,msg,found)
20012001

20022002
implicit none
20032003

20042004
class(json_core),intent(inout) :: json
20052005
character(kind=CDK,len=*),intent(in) :: msg !! the error message
2006+
logical(LK),intent(inout),optional :: found !! if the caller is handling the
2007+
!! exception with an optimal return
2008+
!! argument. If so, `json%stop_on_error`
2009+
!! is ignored.
20062010

2007-
call json%throw_exception(to_unicode(msg))
2011+
call json%throw_exception(to_unicode(msg),found)
20082012

20092013
end subroutine wrap_json_throw_exception
20102014
!*****************************************************************************************

0 commit comments

Comments
 (0)