@@ -1,12 +1,12 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"bytes"
|
||||
|
||||
"github.com/docker/machine/commands/commandstest"
|
||||
"github.com/docker/machine/drivers/vmwarevsphere/errors"
|
||||
"github.com/docker/machine/libmachine/host"
|
||||
"github.com/docker/machine/libmachine/libmachinetest"
|
||||
"github.com/docker/machine/libmachine/mcndockerclient"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package virtualbox
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/docker/machine/drivers/vmwarevsphere/errors"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package virtualbox
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/docker/machine/drivers/vmwarevsphere/errors"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
* Copyright 2014 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
|
||||
*/
|
||||
|
||||
package errors
|
||||
|
||||
import (
|
||||
original "errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func New(message string) error {
|
||||
return original.New(message)
|
||||
}
|
||||
|
||||
func NewWithFmt(message string, args ...interface{}) error {
|
||||
return original.New(fmt.Sprintf(message, args...))
|
||||
}
|
||||
|
||||
func NewWithError(message string, err error) error {
|
||||
return NewWithFmt("%s: %s", message, err.Error())
|
||||
}
|
||||
Reference in New Issue
Block a user