Skip to content

Commit

Permalink
build: tidy error messages
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Aug 21, 2023
1 parent abd6ff4 commit 01d3245
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1562,25 +1562,19 @@ func waitContextDeps(ctx context.Context, index int, results *waitmap.Map, so *c

func cacheExportNotSupported(d driver.Driver) error {
return errors.Errorf(`Cache export is not supported for the %s driver.
Switch to a different driver and try again.
Learn more at https://docs.docker.com/go/build-cache-backends/`, d.Factory().Name())
}

func exporterNotSupported(d driver.Driver, f driver.Feature) error {
return errors.Errorf(`%s is not supported for the %s driver.
Switch to a different driver and try again.
Learn more at https://docs.docker.com/go/build-exporters/`, f, d.Factory().Name())
}

func multiPlatformBuildNotSupported(d driver.Driver) error {
return errors.Errorf(`Multi-platform build is not supported for the %s driver without the containerd image store.
Switch to a different driver, or turn on the containerd image store, and try again.
Learn more at https://docs.docker.com/go/build-multi-platform/`, d.Factory().Name())
}

Expand Down

0 comments on commit 01d3245

Please sign in to comment.