Skip to content

Commit

Permalink
Fix typo in error msg of MAT_HDF5.jl/matopen (#189)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JovisFilius authored Jul 24, 2023
1 parent 73a58b5 commit 120010c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAT_HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end
function matopen(filename::AbstractString, rd::Bool, wr::Bool, cr::Bool, tr::Bool, ff::Bool, compress::Bool)
local f
if ff && !wr
error("Cannot append to a write-only file")
error("Cannot append to a read-only file")
end
if !cr && !isfile(filename)
error("File ", filename, " cannot be found")
Expand Down

0 comments on commit 120010c

Please sign in to comment.