Audit changes

This commit is contained in:
jdl committed 2026-06-14 09:04:41 +02:00
1 parent 164d1f9d95
commit 3e630ee0ad
3 files changed
+17 -11

No files matched your search

+2
View File
@@ -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
}
}