should include the content_id and the path of the container in order to be more informative in case of migrations with spurious errors.
A better error message would be something like plone.api.exc.InvalidParameterError: Cannot add a 'newsletter' object with id=1-15-novembre to the container /magazine/segnalazioni/unibocultura/newsletter.
The error message here
https://github.com/plone/plone.api/blob/master/src/plone/api/content.py#L80-L89
should include the
content_id
and the path of the container in order to be more informative in case of migrations with spurious errors.A better error message would be something like
plone.api.exc.InvalidParameterError: Cannot add a 'newsletter' object with id=1-15-novembre to the container /magazine/segnalazioni/unibocultura/newsletter.
PR pending