r6958 - dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r6958 - dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive
- Date: Tue, 4 Dec 2007 16:21:09 -0600 (CST)
Author: hp
Date: 2007-12-04 16:21:05 -0600 (Tue, 04 Dec 2007)
New Revision: 6958
Modified:
dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AdminHandler.java
dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AnnotatedIQHandler.java
Log:
small improvements to a couple of error messages
Modified: dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AdminHandler.java
===================================================================
--- dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AdminHandler.java 2007-12-04 22:01:21 UTC (rev 6957)
+++ dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AdminHandler.java 2007-12-04 22:21:05 UTC (rev 6958)
@@ -69,7 +69,7 @@
IQ reply = IQ.createResultIQ(iq);
reply.setError(new PacketError(PacketError.Condition.service_unavailable,
PacketError.Type.modify,
- "No handler found for IQ"));
+ "No handler found for IQ namespace " + (namespace != null ? namespace : "none")));
XMPPServer.getInstance().getPacketRouter().route(reply);
} else if (packet instanceof Presence) {
Modified: dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AnnotatedIQHandler.java
===================================================================
--- dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AnnotatedIQHandler.java 2007-12-04 22:01:21 UTC (rev 6957)
+++ dumbhippo/trunk/openfire/src/plugins/hippo/src/java/com/dumbhippo/jive/AnnotatedIQHandler.java 2007-12-04 22:21:05 UTC (rev 6958)
@@ -141,11 +141,11 @@
Element child = request.getChildElement();
if (child == null)
- throw IQException.createBadRequest("No child element");
+ throw IQException.createBadRequest("No child element in IQ");
AnnotatedIQMethod iqMethod = methods.get(child.getName());
if (iqMethod == null)
- throw IQException.createBadRequest("Unknown IQ");
+ throw IQException.createBadRequest("Unknown IQ " + child.getName());
iqMethod.runIQ(request);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]