mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Add a specific error message for invalid maxItem and skipCount. REPO-1061. (small optimation)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -798,11 +798,11 @@ public class ResourceWebScriptHelper
|
||||
}
|
||||
catch (NumberFormatException error)
|
||||
{
|
||||
String errorMsg = "Invalid paging parameters skipCount: " + skip + ", maxItems:" + maxItems;
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("Invalid paging parameters skipCount: " + skip + ", maxItems:" + maxItems);
|
||||
logger.debug(errorMsg);
|
||||
}
|
||||
String errorMsg = "Invalid paging parameters skipCount: " + skip + ", maxItems:" + maxItems;
|
||||
if (skip == null)
|
||||
{
|
||||
errorMsg = "Invalid paging parameter maxItems:" + maxItems;
|
||||
|
Reference in New Issue
Block a user