File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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! *****************************************************************************************
You can’t perform that action at this time.
0 commit comments