dsmiley commented on a change in pull request #593:
URL: https://github.com/apache/solr/pull/593#discussion_r798992148
##########
File path: solr/core/src/java/org/apache/solr/handler/CatStream.java
##########
@@ -98,7 +98,11 @@ public void setStreamContext(StreamContext context) {
this.chroot = core.getCoreContainer().getUserFilesPath();
if (! Files.exists(chroot)) {
- throw new IllegalStateException(chroot + " directory used to load files
must exist but could not be found!");
+ try {
Review comment:
We can break on 9 if necessary. I think throwing an exception to let
the user know of a problem (BAD_REQUEST ?) is appropriate rather than silently
returning nothing that may more likely confuse them.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]