1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 23:42: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() { public String toXML() {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("<error>"); buf.append("<error code=\"").append(code).append("\">");
buf.append("<code>").append(code).append("</code>");
if (message != null) { if (message != null) {
buf.append("<message>").append(message).append("</message>"); buf.append(message);
} }
buf.append("</error>"); buf.append("</error>");
return buf.toString(); return buf.toString();