Audit changes
This commit is contained in:
1 parent
164d1f9d95
commit
3e630ee0ad
3 files changed
+17
-11
No files matched your search
@@ -27,6 +27,8 @@ func DB(err error) error {
|
||||
switch se.ExtendedCode {
|
||||
case sqlite3.ErrConstraintUnique, sqlite3.ErrConstraintPrimaryKey:
|
||||
return ErrAlreadyExists
|
||||
case sqlite3.ErrConstraintForeignKey, sqlite3.ErrConstraintCheck:
|
||||
return ErrConstraint
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user