1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-16 12:12:06 +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:
Matt Tucker 2003-10-29 18:57:17 +00:00 committed by mtucker
parent d8c7f6164f
commit 7f2753f78d

View file

@ -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();