Commit 46dc0ca3 authored by Tomas's avatar Tomas
Browse files

Added WrappedError to SessionError

parent a2d03079
......@@ -166,6 +166,14 @@ func (e *SessionError) Error() string {
return buffer.String()
}
func (e *SessionError) WrappedError() string {
if e.Err == nil {
return ""
}
return e.Err.Error()
}
func (e *SessionError) Stack() string {
if withStack, ok := e.Err.(*errors.Error); ok {
return string(withStack.Stack())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment