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

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-03-06 17:47:37 +05:30 committed by Chip Childers
parent aba3585d93
commit 525d391d65
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}