Files
docker-machine/drivers/vmwarevsphere/errors/govc_error.go
Yang Yang 1bad10773c Added vSphere machine driver
Signed-off-by: Fabio Rapposelli <frapposelli@vmware.com>
2015-01-08 11:00:39 +01:00

23 lines
386 B
Go

/*
* Copyright 2014 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
*/
package errors
import "fmt"
type GovcNotFoundError struct {
path string
}
func NewGovcNotFoundError(path string) error {
err := GovcNotFoundError{
path: path,
}
return &err
}
func (err *GovcNotFoundError) Error() string {
return fmt.Sprintf("govc not found: %s", err.path)
}