Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -25,17 +25,6 @@ func (nse ErrNoSuchEndpoint) Error() string {
|
| 25 | 25 |
// NotFound denotes the type of this error |
| 26 | 26 |
func (nse ErrNoSuchEndpoint) NotFound() {}
|
| 27 | 27 |
|
| 28 |
-// ErrInvalidJoin is returned if a join is attempted on an endpoint |
|
| 29 |
-// which already has a container joined. |
|
| 30 |
-type ErrInvalidJoin struct{}
|
|
| 31 |
- |
|
| 32 |
-func (ij ErrInvalidJoin) Error() string {
|
|
| 33 |
- return "a container has already joined the endpoint" |
|
| 34 |
-} |
|
| 35 |
- |
|
| 36 |
-// BadRequest denotes the type of this error |
|
| 37 |
-func (ij ErrInvalidJoin) BadRequest() {}
|
|
| 38 |
- |
|
| 39 | 28 |
// ErrNoContainer is returned when the endpoint has no container |
| 40 | 29 |
// attached to it. |
| 41 | 30 |
type ErrNoContainer struct{}
|
| ... | ... |
@@ -7,7 +7,7 @@ import ( |
| 7 | 7 |
) |
| 8 | 8 |
|
| 9 | 9 |
func TestErrorInterfaces(t *testing.T) {
|
| 10 |
- badRequestErrorList := []error{ErrInvalidID(""), ErrInvalidName(""), ErrInvalidJoin{}, InvalidContainerIDError("")}
|
|
| 10 |
+ badRequestErrorList := []error{ErrInvalidID(""), ErrInvalidName(""), InvalidContainerIDError("")}
|
|
| 11 | 11 |
for _, err := range badRequestErrorList {
|
| 12 | 12 |
switch u := err.(type) {
|
| 13 | 13 |
case types.BadRequestError: |