add missing path property handling
This commit is contained in:
@@ -12,19 +12,19 @@ const (
|
||||
ErrTypeForeignKeyViolation
|
||||
)
|
||||
|
||||
type DAOError struct {
|
||||
type Error struct {
|
||||
Cause error
|
||||
Type Type
|
||||
}
|
||||
|
||||
func NewDAOError(t Type, cause error) error {
|
||||
return &DAOError{
|
||||
return &Error{
|
||||
Type: t,
|
||||
Cause: cause,
|
||||
}
|
||||
}
|
||||
|
||||
func (e *DAOError) Error() string {
|
||||
func (e *Error) Error() string {
|
||||
if e.Cause != nil {
|
||||
return fmt.Sprintf("Type %d: %s", e.Type, e.Cause.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user