I think leaving this as it is an invitation to have people fall into this pit, like I just di. Either the interface should be extended to see if the caller passed a valid code or improve the documentation to make it clear what is expected and how someone can work around it. I am happy to do the documentation update if someone can tell me how I can propose a documentation change.
Originally posted by @jspurestore in #1742 (comment)
I think leaving this as it is an invitation to have people fall into this pit, like I just di. Either the interface should be extended to see if the caller passed a valid code or improve the documentation to make it clear what is expected and how someone can work around it. I am happy to do the documentation update if someone can tell me how I can propose a documentation change.
Originally posted by @jspurestore in #1742 (comment)