Ian H. Pittwood 8a3950d238 Fix typos in variable names and comments
Change-Id: I361916cc18c67e72fbfdbb4b6547f80a5d098327
2020-02-05 16:31:05 -06:00

33 lines
736 B
Go

package container
import (
"fmt"
)
// ErrEmptyImageList returned if no image defined in filter found
type ErrEmptyImageList struct {
}
func (e ErrEmptyImageList) Error() string {
return "Image List Error. No images filtered"
}
// ErrRunContainerCommand returned if container command
// exited with non-zero code
type ErrRunContainerCommand struct {
Cmd string
}
func (e ErrRunContainerCommand) Error() string {
return fmt.Sprintf("Command error. run '%s' for details", e.Cmd)
}
// ErrContainerDrvNotSupported returned if desired CRI is not supported
type ErrContainerDrvNotSupported struct {
Driver string
}
func (e ErrContainerDrvNotSupported) Error() string {
return fmt.Sprintf("Driver %s is not supported", e.Driver)
}