Change iteration over connection decoding to abort after the first error, and let the UnknownPeersError know which peer was unknown

This commit is contained in:
Bryan Boreham committed 2014-09-16 09:32:53 +01:00
1 parent 1748b6e790
commit 978d374820
3 files changed
+17 -14

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func (ftbe FrameTooBigError) Error() string {
}
func (upe UnknownPeersError) Error() string {
return fmt.Sprint("Reference to unknown peers")
return fmt.Sprint("Reference to unknown peer: ", upe.Name)
}
func (nce NameCollisionError) Error() string {