Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #60 from Luap99/log-dnsmasq-errors
Browse files Browse the repository at this point in the history
return dnsmasq errors
  • Loading branch information
openshift-merge-robot authored Apr 15, 2021
2 parents 3d464ba + 13bf4d4 commit ad2b432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/meta/dnsname/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ func (d dnsNameFile) start() error {
fmt.Sprintf("--conf-file=%s", d.ConfigFile),
}
cmd := exec.Command(d.Binary, args...)
return cmd.Run()
if b, err := cmd.CombinedOutput(); err != nil {
return errors.Wrapf(err, "dnsname error: dnsmasq failed with %q", b)
}
return nil
}

// stop stops the dnsmasq instance.
Expand Down

0 comments on commit ad2b432

Please sign in to comment.