build-sys: make make happy with core.Wrap

Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
This commit is contained in:
2024-09-30 09:55:32 +03:00
parent ff3feb49f2
commit f747e4d8d5
7 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ func (m *Cluster) scanDirectory(opts *ScanOptions) error {
ok, err := m.scanSubdirectory(opts, e.Name())
switch {
case err != nil:
return core.Wrap(err, e.Name())
return core.Wrap(err, "cannot scan directory %q", e.Name())
case !ok:
m.warn(nil).
WithField("zone", e.Name()).
@@ -220,7 +220,7 @@ func (z *Zone) loadRegions() error {
// parsed
err = z.appendRegions(regions...)
if err != nil {
err = core.Wrap(err, filename)
err = core.Wrap(err, "cannot append region from file %q", filename)
}
}
@@ -247,7 +247,7 @@ func (z *Zone) loadClusterToken() error {
err = z.zones.setRegionClusterToken(z.Name, token)
if err != nil {
err = core.Wrap(err, filename)
err = core.Wrap(err, "wrong cluster token in file %q", filename)
}
return err