Skip to content

Commit

Permalink
better error message on read
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Dec 11, 2024
1 parent 79d6f46 commit 5b2283d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib_io.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ contains
if (iostat/=0) then

inquire(unit=lun,pos=errpos)
err0 = state_type('getfile',STDLIB_IO_ERROR,'Error reading',fileName,'at byte',errpos)
err0 = state_type('getfile',STDLIB_IO_ERROR,iomsg,'(',fileName,'at byte',errpos,')')
call err0%handle(err)
return

Expand Down

0 comments on commit 5b2283d

Please sign in to comment.