Fix a bug in implementation of Panic(), by forwarding spread arguments

This commit is contained in:
Ola Bini 2023-04-28 21:18:48 -05:00
parent 3d18e76bc7
commit 87c4fcf5d9
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F

View file

@ -161,7 +161,7 @@ func (client *Client) IsVerified() bool {
// Log a panic and disconnect the client.
func (client *Client) Panic(v ...interface{}) {
client.Print(v)
client.Print(v...)
client.Disconnect()
}