1
0
Fork 0
forked from External/grumble

Fix variadic Printfin client#Panicf.

This commit is contained in:
Mikkel Krautz 2011-05-19 23:59:08 +02:00
parent 5b1cfd14f1
commit eda35c3ff8

View file

@ -134,7 +134,7 @@ func (client *Client) Panic(v ...interface{}) {
// Log a formatted panic and disconnect the client. // Log a formatted panic and disconnect the client.
func (client *Client) Panicf(format string, v ...interface{}) { func (client *Client) Panicf(format string, v ...interface{}) {
client.Printf(format, v) client.Printf(format, v...)
client.Disconnect() client.Disconnect()
} }