Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)

125121 gjames: RA-675: Fixed the descriptionURL in error response


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126609 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-05-10 11:49:57 +00:00
parent cbc53527ee
commit 186236813e
3 changed files with 28 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ public abstract class ApiWebScript extends AbstractWebScript
*/
public void renderErrorResponse(final ErrorResponse errorResponse, final WebScriptResponse res) throws IOException {
errorResponse.setDescriptionURL("http://developer.alfresco.com/ErrorsExplained.html#"+errorResponse.getErrorKey());
errorResponse.setDescriptionURL(DefaultExceptionResolver.ERROR_URL);
setContentInfoOnResponse(res, DEFAULT_JSON_CONTENT);