From 39ecb32463497d0750cdbf73ae534cc64a32181e Mon Sep 17 00:00:00 2001 From: Iblis Lin Date: Sun, 17 Dec 2017 06:02:02 +0800 Subject: [PATCH] base: improve MXError display (#379) --- src/base.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/base.jl b/src/base.jl index 0334260f8..8f14d44c6 100644 --- a/src/base.jl +++ b/src/base.jl @@ -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 ################################################################################