airshipctl/pkg/remote/errors.go
Dmitry Ukov c1ed28fd25 Move all error structs to common package 'errors'
Change-Id: I91e9610b27244fe5d7500575eae24647e256dab8
2019-12-01 14:14:09 +04:00

18 lines
290 B
Go

package remote
import (
"fmt"
aerror "opendev.org/airship/airshipctl/pkg/errors"
)
type RemoteDirectError struct {
aerror.AirshipError
}
func NewRemoteDirectErrorf(format string, v ...interface{}) error {
e := &RemoteDirectError{}
e.Message = fmt.Sprintf(format, v...)
return e
}