bbolt/error.go

14 lines
189 B
Go

package bolt
type Error struct {
message string
cause error
}
func (e *Error) Error() string {
if e.cause != nil {
return e.message + ": " + e.cause.Error()
}
return e.message
}