Merge pull request #1426 from weaveworks/1418-clean-cancel

Handle cancelled allocation in 'weave attach'

Fixes #1418.
This commit is contained in:
Matthias Radestock committed 2015-09-22 16:27:27 +01:00
commit 7f74ae7912
5 files changed
+61 -52

No files matched your search

+9
View File
@@ -186,6 +186,15 @@ func hasBeenCancelled(cancelChan <-chan bool) func() bool {
}
}
type errorCancelled struct {
kind string
ident string
}
func (e *errorCancelled) Error() string {
return fmt.Sprintf("%s request for %s cancelled", e.kind, e.ident)
}
// Actor client API
// Allocate (Sync) - get new IP address for container with given name in range