aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-11 22:34:29 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-11 22:34:29 +0000
commit81b877341f41ef871279ead57aa81481f1135b84 (patch)
tree305524906d5326c5d889ccd7d33b473ed9687aba
parentd6e50241ad18826a16b95e9a1d0a5c7382d16a0a (diff)
downloadprosody-81b877341f41ef871279ead57aa81481f1135b84.tar.gz
prosody-81b877341f41ef871279ead57aa81481f1135b84.zip
util.stanza: Change get_error() to return nil rather than '' for no text
-rw-r--r--util/stanza.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 307a858a..16d558af 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -254,7 +254,7 @@ function stanza_mt.get_error(stanza)
end
end
end
- return type, condition or "undefined-condition", text or "";
+ return type, condition or "undefined-condition", text;
end
function stanza_mt.__add(s1, s2)