mirror of https://github.com/apache/cloudstack.git
Fixed description for ServerApiException
This commit is contained in:
parent
090bc1edb4
commit
133f286b06
|
|
@ -108,7 +108,7 @@ public class ApiDispatcher {
|
|||
s_logger.warn(t.getClass() + " : " + ((ServerApiException) t).getDescription());
|
||||
errorMsg = ((ServerApiException) t).getDescription();
|
||||
if (UserContext.current().getCaller().getType() == Account.ACCOUNT_TYPE_ADMIN) {
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, t.getMessage());
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, errorMsg);
|
||||
} else {
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, BaseCmd.USER_ERROR_MESSAGE);
|
||||
}
|
||||
|
|
@ -173,7 +173,7 @@ public class ApiDispatcher {
|
|||
errorMsg = ((ServerApiException) t).getDescription();
|
||||
s_logger.warn(t.getClass() + " : " + ((ServerApiException) t).getDescription());
|
||||
if (UserContext.current().getCaller().getType() == Account.ACCOUNT_TYPE_ADMIN) {
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, t.getMessage());
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, errorMsg);
|
||||
} else {
|
||||
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, BaseCmd.USER_ERROR_MESSAGE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue