chore(dot): add error description for update files failure

This commit is contained in:
Quentin McGaw
2021-11-18 08:12:07 +00:00
parent 80f6b78332
commit c76a7ee8da

View File

@@ -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()