Open edwardchapin opened 6 years ago
I checked in a fix that will at least print the file name in this case. Normally a much better error message should be printed by the Config class, however due to a bug that was reported but then closed without fixing (see https://github.com/lightbend/config/issues/367) a null pointer exception is thrown. I added a comment to the issue. Hopefully someone will notice and fix it. The problem is caused by the comma in the string, which is interpreted as a special char.
Thanks - that's a very helpful fix.
Perhaps a compromise is to add a "Known Issues" section to README.md, to give users a sense of the kinds of problems they might expect.
I added "Known Issues" section to the top level README.md file.
When ingesting a
publish-model.conf
with the following description string,I get the following exception:
Through trial-and-error I was able to get the file to ingest by quoting the string:
Since the raised exception offers no hints (e.g., line number in the input file, or an indication of unexpected input for the value of the field), it could be quite difficult to track down the problem. Furthermore, if you ingest a large number of files (e.g., an entire subsystem), there isn't even an indication of which file caused the exception.
At a minimum, please indicate which file is the source of an exception raised during ingestion. Also, if possible in this case, provide more information to the user regarding the cause of the exception.