mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
use plain error type for expected behaviors (#447)
This commit is contained in:
1 parent
05b716d80f
commit
08dea15cbf
3 files changed
+5
-4
No files matched your search
@@ -105,7 +105,7 @@ func editDDNS(c *gin.Context) error {
|
||||
|
||||
var p model.DDNSProfile
|
||||
if err = singleton.DB.First(&p, id).Error; err != nil {
|
||||
return newGormError("%v", err)
|
||||
return fmt.Errorf("profile id %d does not exist", id)
|
||||
}
|
||||
|
||||
p.Name = df.Name
|
||||
|
||||
Reference in new issue
Block a user