DaanHoogland commented on code in PR #12961:
URL: https://github.com/apache/cloudstack/pull/12961#discussion_r3199741306
##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -3934,16 +3934,16 @@ public Long finalizeAccountId(Long accountId, String
accountName, Long domainId,
throw new ServerApiException(ApiErrorCode.PARAM_ERROR,
String.format("Both %s and %s are needed if using either. Consider using %s
instead.",
ApiConstants.ACCOUNT, ApiConstants.DOMAIN_ID,
ApiConstants.ACCOUNT_ID));
}
- throw new InvalidParameterValueException(String.format("Unable to find
account by name [%s] on domain [%s].", accountName, domainId));
+ throw new InvalidParameterValueException(String.format("Unable to find
account with name [%s] on the specified domain.", accountName));
}
protected long getActiveProjectAccountByProjectId(long projectId) {
Project project = _projectMgr.getProject(projectId);
if (project == null) {
- throw new ServerApiException(ApiErrorCode.PARAM_ERROR,
String.format("Unable to find project with ID [%s].", projectId));
+ throw new ServerApiException(ApiErrorCode.PARAM_ERROR,
String.format("Unable to find project with the specified ID.", projectId));
Review Comment:
```suggestion
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Unable
to find project with the specified ID.");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]