From 662aee8f211e5848ad400f6d52026e4a350acbc6 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Mon, 2 Feb 2009 11:50:29 +0000 Subject: [PATCH] a bit better error message for https://issues.apache.org/activemq/browse/AMQ-2092 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@739966 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/TransportConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java b/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java index 5e114c4668..9cdebd6911 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/TransportConnection.java @@ -176,7 +176,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor { serviceLock.readLock().lock(); try { if (!(o instanceof Command)) { - throw new RuntimeException("Protocol violation - Command corrupted"); + throw new RuntimeException("Protocol violation - Command corrupted: " + o.toString()); } Command command = (Command)o; Response response = service(command);