max size error message

This commit is contained in:
yuri
2015-08-06 17:21:40 +03:00
parent 8986b6f426
commit f363d77cb7
+1 -1
View File
@@ -129,7 +129,7 @@ class Record extends Base
$maxSize = self::MAX_SIZE_LIMIT;
}
if (!empty($maxSize) && $maxSize > self::MAX_SIZE_LIMIT) {
throw new Forbidden();
throw new Forbidden("Max should should not exceed " . self::MAX_SIZE_LIMIT . ". Use pagination (offset, limit).");
}
$result = $this->getRecordService()->findEntities(array(