域名操作错误时显示具体的域名、记录信息等

This commit is contained in:
GoEdgeLab
2022-03-10 17:42:23 +08:00
parent adfcdf306e
commit 4084c649a6
8 changed files with 99 additions and 32 deletions

View File

@@ -29,6 +29,8 @@ var customHTTPClient = &http.Client{
type CustomHTTPProvider struct {
url string
secret string
BaseProvider
}
// Auth 认证
@@ -117,7 +119,7 @@ func (this *CustomHTTPProvider) AddRecord(domain string, newRecord *dnstypes.Rec
"domain": domain,
"newRecord": newRecord,
})
return err
return this.WrapError(err, domain, newRecord)
}
// UpdateRecord 修改记录
@@ -128,7 +130,7 @@ func (this *CustomHTTPProvider) UpdateRecord(domain string, record *dnstypes.Rec
"record": record,
"newRecord": newRecord,
})
return err
return this.WrapError(err, domain, newRecord)
}
// DeleteRecord 删除记录
@@ -138,7 +140,7 @@ func (this *CustomHTTPProvider) DeleteRecord(domain string, record *dnstypes.Rec
"domain": domain,
"record": record,
})
return err
return this.WrapError(err, domain, record)
}
// DefaultRoute 默认线路