Skip to content

Commit 120010c

Browse files
authored
Fix typo in error msg of MAT_HDF5.jl/matopen (JuliaIO#189)
Upon attempting to append to a read-only file, an error saying that it "cannot append to a write-only file" is returned. Presumably, the intended message was that appending to a READ-only file is not possible.
1 parent 73a58b5 commit 120010c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MAT_HDF5.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ end
8383
function matopen(filename::AbstractString, rd::Bool, wr::Bool, cr::Bool, tr::Bool, ff::Bool, compress::Bool)
8484
local f
8585
if ff && !wr
86-
error("Cannot append to a write-only file")
86+
error("Cannot append to a read-only file")
8787
end
8888
if !cr && !isfile(filename)
8989
error("File ", filename, " cannot be found")

0 commit comments

Comments
 (0)