mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Fixed bad XML in toXML method (SMACK-103).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2159 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
d8c7f6164f
commit
7f2753f78d
1 changed files with 2 additions and 3 deletions
|
@ -130,10 +130,9 @@ public class XMPPError {
|
|||
*/
|
||||
public String toXML() {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
buf.append("<error>");
|
||||
buf.append("<code>").append(code).append("</code>");
|
||||
buf.append("<error code=\"").append(code).append("\">");
|
||||
if (message != null) {
|
||||
buf.append("<message>").append(message).append("</message>");
|
||||
buf.append(message);
|
||||
}
|
||||
buf.append("</error>");
|
||||
return buf.toString();
|
||||
|
|
Loading…
Reference in a new issue