There are some functions in EDIutils that fail silently or with confusing error messages when an incomplete packageId parameter is supplied. For example, leaving out the package version for EDIutils::get_provenance_metadata('knb-lter-jrn.202') gives a confusing Internal Server Error message. I think a fairly simple error catch with some useful user feedback ("The packageId is incomplete") would be very helpful for debugging input errors, especially when EDIutils is being called as a dependency. Would utilities/parse_packageId be a good place to put this?
There are some functions in EDIutils that fail silently or with confusing error messages when an incomplete
packageIdparameter is supplied. For example, leaving out the package version forEDIutils::get_provenance_metadata('knb-lter-jrn.202')gives a confusingInternal Server Errormessage. I think a fairly simple error catch with some useful user feedback ("The packageId is incomplete") would be very helpful for debugging input errors, especially when EDIutils is being called as a dependency. Wouldutilities/parse_packageIdbe a good place to put this?