MCPcopy
hub / github.com/containers/toolbox / createErrorDistroWithoutRelease

Function createErrorDistroWithoutRelease

src/cmd/utils.go:273–281  ·  view source on GitHub ↗
(distro string)

Source from the content-addressed store, hash-verified

271}
272
273func createErrorDistroWithoutRelease(distro string) error {
274 var builder strings.Builder
275 fmt.Fprintf(&builder, "option '--release' is needed\n")
276 fmt.Fprintf(&builder, "Distribution %s doesn't match the host.\n", distro)
277 fmt.Fprintf(&builder, "Run '%s --help' for usage.", executableBase)
278
279 errMsg := builder.String()
280 return errors.New(errMsg)
281}
282
283func createErrorInvalidContainer(containerArg string) error {
284 var builder strings.Builder

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…