jose-correia opened a new pull request, #59:
URL: https://github.com/apache/sling-org-apache-sling-distribution-core/pull/59

   The API is currently responding with a very generic message when packages 
fail to be distributed.
   
   ```
   {
     "message": "an unexpected error has occurred"
   }
   
   ```
   
   This should be improved since there are some errors that are due to bad 
usage, eg: packages that are too big, and we should to provide more context to 
the client:
   
   ```
   {
     "message": "an unexpected error has occurred",
     "details": "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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to