]> Sergey Matveev's repositories - btrtrc.git/commitdiff
dat new-world-style panic
authorMatt Joiner <anacrolix@gmail.com>
Fri, 23 May 2014 11:02:11 +0000 (21:02 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 23 May 2014 11:02:11 +0000 (21:02 +1000)
client.go

index 12c928f5bebc1e2c26e629e9bd70f200c6663cdf..49e80cf4f7e55db1b22ee3a2e2148ccabb2e138a 100644 (file)
--- a/client.go
+++ b/client.go
@@ -485,7 +485,7 @@ func (me *Client) dropConnection(torrent *torrent, conn *connection) {
                torrent.Conns = torrent.Conns[:i1]
                return
        }
-       panic("no such Connection")
+       panic("connection not found")
 }
 
 func (me *Client) addConnection(t *torrent, c *connection) bool {