We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358c95e commit 97df536Copy full SHA for 97df536
src/Abstract/ObjectHandle.jl
@@ -135,11 +135,11 @@ function readmeta(io::IO)
135
Object file is not any of $(join(ObjTypes, ", "))!
136
To force one object file format use readmeta(io, T).
137
""")
138
- error(replace(msg, "\n" => " "))
+ throw(MagicMismatch(replace(msg, "\n" => " ")))
139
end
140
141
function readmeta(file::AbstractString)
142
- depwarn("`readmeta(file::AbstractString)` is deprecated, use the do-block variant instead.")
+ warn("`readmeta(file::AbstractString)` is deprecated, use the do-block variant instead.")
143
return readmeta(open(file, "r"))
144
145
0 commit comments