mirror of https://github.com/docker/docs.git
23 lines
479 B
Go
23 lines
479 B
Go
/*
|
|
* Copyright 2014 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
|
|
*/
|
|
|
|
package errors
|
|
|
|
import "fmt"
|
|
|
|
type IncompleteVsphereConfigError struct {
|
|
component string
|
|
}
|
|
|
|
func NewIncompleteVsphereConfigError(component string) error {
|
|
err := IncompleteVsphereConfigError{
|
|
component: component,
|
|
}
|
|
return &err
|
|
}
|
|
|
|
func (err *IncompleteVsphereConfigError) Error() string {
|
|
return fmt.Sprintf("Incomplete vSphere information: missing %s", err.component)
|
|
}
|