You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2022/06/01 14:04:45 UTC

[GitHub] [sling-org-apache-sling-distribution-core] tmaret commented on pull request #59: SLING-11366: Provide more exception error context on the JSON API responses

tmaret commented on PR #59:
URL: https://github.com/apache/sling-org-apache-sling-distribution-core/pull/59#issuecomment-1143656095

   I think it makes sense to keep the message and the cause in two distinct properties. To align naming with java exceptions we may use 
   
   ```
   {
     "message": "an unexpected error has occurred",
     "cause": "Failed to create content package for requestType=ADD, paths=[/content]. Error=Can't distribute package with size greater than 1 Byte, actual 4053"
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org