Java: Display a clearer message when properties files is not found #2093
Labels
java
Issue or PR regarding Java code
sk team issue
A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
To get the settings from a properties file, you use the following code
If something goes wrong the following message is displayed:
Because the code swallows the exception, I had to debug the code of
ClientSettings
to see that the property file was not found (java.io.FileNotFoundException: /agoncal/agoncal-sample-semantic-kernel/conf.properties (No such file or directory)
):It would be clearer, either if you display the exception message, or if you handle
FileNotFoundException
:The text was updated successfully, but these errors were encountered: