Skip to content

Commit

Permalink
base: improve MXError display (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin authored and pluskid committed Dec 16, 2017
1 parent 4507598 commit 39ecb32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ struct MXError <: Exception
msg :: AbstractString
end

Base.show(io::IO, e::MXError) = print(io, e.msg)

################################################################################
# Common types used in MXNet API
################################################################################
Expand Down

0 comments on commit 39ecb32

Please sign in to comment.