fix: resolve import errors and clarify whois error messages

This commit is contained in:
Bot
2026-04-16 23:16:30 +08:00
parent 3d19be657d
commit a3e2b2edba
2 changed files with 30 additions and 22 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package controller
import (
"encoding/json"
"fmt"
"strconv"
"time"
@@ -131,7 +132,7 @@ func SyncDomainWHOIS(c *gin.Context) (any, error) {
}
if err := singleton.SyncDomainWHOIS(domain); err != nil {
return nil, newGormError("Whois 同步失败: %s", err.Error())
return nil, fmt.Errorf("Whois 同步失败: %v", err)
}
return domain, nil