Author: davsclaus
Date: Wed Apr 27 21:27:21 2011
New Revision: 1097248

URL: http://svn.apache.org/viewvc?rev=1097248&view=rev
Log:
CAMEL-3905: Polished error message in camel-cache. Thanks to Piotr for the 
patch.

Modified:
    
camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java

Modified: 
camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java?rev=1097248&r1=1097247&r2=1097248&view=diff
==============================================================================
--- 
camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
 (original)
+++ 
camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
 Wed Apr 27 21:27:21 2011
@@ -85,7 +85,7 @@ public class CacheProducer extends Defau
         String operation = 
exchange.getIn().getHeader(CacheConstants.CACHE_OPERATION, String.class);
 
         if (operation == null) {
-            throw new CacheException(CacheConstants.CACHE_OPERATION + " not 
specified in the message header [" + CacheConstants.CACHE_KEY + "]");
+            throw new CacheException(CacheConstants.CACHE_OPERATION + " header 
not specified in message");
         }
         if ((key == null) && 
(!operation.equalsIgnoreCase(CacheConstants.CACHE_OPERATION_DELETEALL))) {
             throw new CacheException(CacheConstants.CACHE_KEY + " is not 
specified in message header or endpoint URL.");


Reply via email to