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:
Bryan Boreham committed 2015-05-19 12:37:57 +01:00
1 parent cf34335ec7
commit ee7dac9e28
4 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -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