Fix error message to be more accurate and include more debugging info #19363
Bugfix Pull Request
I ran into an issue where my module wasn't getting passed valid JSON. I'm still not sure why that is, but I was derailed for hours by this message which inaccurately claims it tried to pull arguments from stdin.
Below is a slightly redacted version (removed argument names/values I don't want to share) of the error message. You can see it looks like the args file is being created with invalid JSON (it looks like the buffer read in is missing an opening brace and possibly a key). Beyond this pull request, I'd appreciate ideas on why that might be.
@lukeschlather Greetings! Thanks for taking the time to open this pullrequest. In order for the community to handle your pullrequest effectively, we need a bit more information.
Here are the items we could not find in your description:
Please set the description of this pullrequest with this template: