chore(dot): add error description for update files failure
This commit is contained in:
@@ -3,6 +3,7 @@ package dns
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/qdm12/dns/pkg/check"
|
"github.com/qdm12/dns/pkg/check"
|
||||||
@@ -18,7 +19,8 @@ func (l *Loop) setupUnbound(ctx context.Context) (
|
|||||||
cancel context.CancelFunc, waitError chan error, closeStreams func(), err error) {
|
cancel context.CancelFunc, waitError chan error, closeStreams func(), err error) {
|
||||||
err = l.updateFiles(ctx)
|
err = l.updateFiles(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, nil, errUpdateFiles
|
return nil, nil, nil,
|
||||||
|
fmt.Errorf("%w: %s", errUpdateFiles, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
settings := l.GetSettings()
|
settings := l.GetSettings()
|
||||||
|
|||||||
Reference in New Issue
Block a user