CLOUDSTACK-1417: cosmetics, print param name, value for uuid->id translate error

Signed-off-by: Rohit Yadav <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/15b5b7e7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/15b5b7e7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/15b5b7e7

Branch: refs/heads/ui-multiple-nics
Commit: 15b5b7e7a3c1cf00cffc9a15a22b405db96e9748
Parents: cc9b7d4
Author: Rohit Yadav <[email protected]>
Authored: Wed Mar 6 17:47:37 2013 +0530
Committer: Rohit Yadav <[email protected]>
Committed: Wed Mar 6 17:55:40 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiDispatcher.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/15b5b7e7/server/src/com/cloud/api/ApiDispatcher.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiDispatcher.java 
b/server/src/com/cloud/api/ApiDispatcher.java
index 552dea5..764b3ae 100755
--- a/server/src/com/cloud/api/ApiDispatcher.java
+++ b/server/src/com/cloud/api/ApiDispatcher.java
@@ -372,8 +372,8 @@ public class ApiDispatcher {
         if (internalId == null) {
             if (s_logger.isDebugEnabled())
                 s_logger.debug("Object entity uuid = " + uuid + " does not 
exist in the database.");
-            throw new InvalidParameterValueException("Invalid parameter 
value=" + uuid
-                + " due to incorrect long value format, or entity was not 
found as it may have been deleted, or due to incorrect parameter annotation for 
the field in api cmd.");
+            throw new InvalidParameterValueException("Invalid parameter " + 
annotation.name() + " value=" + uuid
+                + " due to incorrect long value format, or entity does not 
exist or due to incorrect parameter annotation for the field in api cmd 
class.");
         }
         return internalId;
     }

Reply via email to