mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 15:46:15 -06:00
fix returning nil error processing sqlite errors
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
parent
b654a1235a
commit
718503eb08
1 changed files with 1 additions and 1 deletions
|
|
@ -38,6 +38,6 @@ func processSQLiteError(err error) db.Error {
|
|||
case sqlite3.SQLITE_CONSTRAINT_UNIQUE:
|
||||
return db.ErrAlreadyExists
|
||||
default:
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue