aboutsummaryrefslogtreecommitdiff
path: root/error.go
blob: 40877dc05ee7025c65bedb4b836b995f4c8e864a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}