Skip to content

Commit eb08348

Browse files
committed
Fix error printing
1 parent a5bcd40 commit eb08348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/error_handling.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ immutable LoaderError <: Exception
88
msg::Compat.UTF8String
99
end
1010
Base.showerror(io::IO, e::LoaderError) = println(io, e.library, " load error: ",
11-
msg, "\n Will try next loader.")
11+
e.msg, "\n Will try next loader.")
1212

1313
"""
1414
`WriterError` should be thrown when writer library code fails, and other libraries should
@@ -21,7 +21,7 @@ immutable WriterError <: Exception
2121
end
2222
Base.showerror(io::IO, e::WriterError) = println(
2323
io, e.library, " writer error: ",
24-
msg, "\n Will try next writer."
24+
e.msg, "\n Will try next writer."
2525
)
2626

2727
"""

0 commit comments

Comments
 (0)