mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 22: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() {
|
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();
|
||||||
|
|
Loading…
Reference in a new issue