(distro string)
| 271 | } |
| 272 | |
| 273 | func 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 | |
| 283 | func createErrorInvalidContainer(containerArg string) error { |
| 284 | var builder strings.Builder |
no outgoing calls
no test coverage detected
searching dependent graphs…