Skip to content

Commit 578414a

Browse files
committed
Add args to fallback load function
This will make sure it's last in the chain
1 parent bcddcfa commit 578414a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileIO.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function Base.writemime(io::IO, mime::MIME, x)
115115
end
116116

117117
# Fallbacks
118-
load{F}(f::Formatted{F}; options...) = error("No load function defined for format ", F, " with filename ", filename(f))
118+
load{F}(f::Formatted{F}, args...; options...) = error("No load function defined for format ", F, " with filename ", filename(f))
119119
save{F}(f::Formatted{F}, data...; options...) = error("No save function defined for format ", F, " with filename ", filename(f))
120120

121121
end # module

0 commit comments

Comments
 (0)