Improve error messages
Make clear that they come from the IP allocator, and reduce repetition in the text. Also include the nickname for other peer, if known.
This commit is contained in:
1 parent
cf34335ec7
commit
ee7dac9e28
4 files changed
+10
-6
No files matched your search
+1
-1
@@ -46,7 +46,7 @@ func (g *allocate) Try(alloc *Allocator) bool {
|
||||
}
|
||||
|
||||
func (g *allocate) Cancel() {
|
||||
g.resultChan <- allocateResult{0, fmt.Errorf("Request Cancelled")}
|
||||
g.resultChan <- allocateResult{0, fmt.Errorf("Allocate request for %s cancelled, g.ident")}
|
||||
}
|
||||
|
||||
func (g *allocate) String() string {
|
||||
|
||||
Reference in new issue
Block a user