This commit is contained in:
parent
cd43e0a621
commit
44fbd4c0a6
@ -2,7 +2,7 @@ package watch
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/codfrm/cago/pkg/logger"
|
||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
|
||||
@ -30,7 +30,7 @@ func (w *watch) queryRecord(domain, name, value, line string) (*dnspod.RecordLis
|
||||
return v, nil
|
||||
}
|
||||
}
|
||||
return nil, errors.New("record not found")
|
||||
return nil, fmt.Errorf("[%s] %s %s %s record not found", domain, name, value, line)
|
||||
}
|
||||
|
||||
func (w *watch) enable(ctx context.Context, domain string, recordId uint64) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user