commit | e6dc896441ceed02c620b4309bd01de784e360f0 | [log] [tgz] |
---|---|---|
author | Philip Linde <plinde@proceranetworks.com> | Tue Oct 27 12:16:11 2015 +0100 |
committer | Philip Linde <plinde@proceranetworks.com> | Tue Oct 27 12:16:11 2015 +0100 |
tree | 513adb7f5bd53edb13c4fde5011f073705d99de7 | |
parent | 9d712e91b1f05c35bf7e8fa71a1b09392925d452 [diff] |
make the StatusError language tag optional
diff --git a/client.go b/client.go index 8ee052e..8f84670 100644 --- a/client.go +++ b/client.go
@@ -1110,7 +1110,7 @@ } code, data := unmarshalUint32(data) msg, data := unmarshalString(data) - lang, _ := unmarshalString(data) + lang, _, _ := unmarshalStringSafe(data) return &StatusError{ Code: code, msg: msg,