Improve fatal error message.
This commit is contained in:
parent
4759e83863
commit
5536f034bd
|
|
@ -124,7 +124,7 @@ func (x *XMPP) receiver() {
|
||||||
case "presence":
|
case "presence":
|
||||||
v = &Presence{}
|
v = &Presence{}
|
||||||
default:
|
default:
|
||||||
panic("Unexected element: " + start.Name.Local)
|
log.Fatal("Unexected element: %T %v", start, start)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = x.stream.DecodeElement(v, start)
|
err = x.stream.DecodeElement(v, start)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue