Skip to content

Commit 5b2283d

Browse files
committed
better error message on read
1 parent 79d6f46 commit 5b2283d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_io.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ contains
614614
if (iostat/=0) then
615615

616616
inquire(unit=lun,pos=errpos)
617-
err0 = state_type('getfile',STDLIB_IO_ERROR,'Error reading',fileName,'at byte',errpos)
617+
err0 = state_type('getfile',STDLIB_IO_ERROR,iomsg,'(',fileName,'at byte',errpos,')')
618618
call err0%handle(err)
619619
return
620620

0 commit comments

Comments
 (0)