mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-30 08:50:26 +01:00
use error.Is to handle wrapped errors
This commit is contained in:
1 parent
0fb859c321
commit
41dcd9b4d4
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -565,7 +565,7 @@ func (app *BaseApp) RefreshSettings() error {
|
||||
encryptionKey := os.Getenv(app.EncryptionEnv())
|
||||
|
||||
storedSettings, err := app.Dao().FindSettings(encryptionKey)
|
||||
if err != nil && err != sql.ErrNoRows {
|
||||
if err != nil && !errors.Is(err, sql.ErrNoRows) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user