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:
Martin Muller
2016-08-22 09:51:05 +00:00
parent 30a8157a06
commit c83c0521b2

View File

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