From 28e854bbc54978b810b91a7647b1fec1c6a36a9a Mon Sep 17 00:00:00 2001 From: Jake Bolewski Date: Wed, 30 Sep 2015 13:37:06 -0400 Subject: [PATCH] give context to GitErrors when showing error --- base/libgit2/error.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/libgit2/error.jl b/base/libgit2/error.jl index 193849f9ac622..3fc226215c66e 100644 --- a/base/libgit2/error.jl +++ b/base/libgit2/error.jl @@ -65,7 +65,7 @@ immutable GitError <: Exception code::Code msg::AbstractString end -Base.show(io::IO, err::GitError) = print(io, "[Code:$(err.code), Class:$(err.class)]: $(err.msg)") +Base.show(io::IO, err::GitError) = print(io, "GitError(Code:$(err.code), Class:$(err.class), $(err.msg))") function last_error() err = ccall((:giterr_last, :libgit2), Ptr{ErrorStruct}, ())