mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-05-06 05:38:50 +00:00
fix: resolve import errors and clarify whois error messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user