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
@@ -242,7 +242,7 @@ func (alloc *Allocator) free(ident string) error {
|
||||
found = alloc.cancelOpsFor(&alloc.pendingClaims, ident) || found
|
||||
|
||||
if !found {
|
||||
errChan <- fmt.Errorf("No addresses for %s", ident)
|
||||
errChan <- fmt.Errorf("Free: no addresses for %s", ident)
|
||||
return
|
||||
}
|
||||
errChan <- nil
|
||||
|
||||
Reference in new issue
Block a user