Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/json_value_module.F90
Original file line number Diff line number Diff line change
Expand Up @@ -11599,7 +11599,9 @@ subroutine json_print_error_message(json,io_unit)
write(io_unit,'(A)',iostat=istat) error_msg
if (istat/=0) then
! in this case, just try to write to the error_unit
call integer_to_string(io_unit,int_fmt,tmp)
! [convert to IK integer, we assume this will be ok since
! normally these io units are default ints]
call integer_to_string(int(io_unit,IK),int_fmt,tmp)
write(error_unit,'(A)',iostat=istat) 'Error writing to unit '//trim(tmp)
write(error_unit,'(A)',iostat=istat) error_msg
end if
Expand Down
Loading