wip
This commit is contained in:
parent
587cd1c9b4
commit
5577f90f95
@ -18,10 +18,10 @@ func translateError(err error) error {
|
||||
return nil
|
||||
}
|
||||
if e, ok := err.(sqlite3.Error); ok && e.Code == 19 {
|
||||
return ErrConstraint
|
||||
return errors.Join(ErrConstraint, err)
|
||||
}
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return ErrNotFound
|
||||
return errors.Join(ErrNotFound, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user