Merge pull request #223 from creative-commoners/pulls/3.2/use-exception

FIX Use \Exception for catching Solr exceptions
This commit is contained in:
Robbie Averill 2018-06-27 17:00:12 +12:00 committed by GitHub
commit d2c4181826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 37 additions and 36 deletions

View File

@ -105,8 +105,8 @@ class SearchUpdater
'command' => $command,
'fields' => array()
);
} // Otherwise update the class label if it's more specific than the currently recorded one
elseif (is_subclass_of($class, $writes[$key]['class'])) {
} elseif (is_subclass_of($class, $writes[$key]['class'])) {
// Otherwise update the class label if it's more specific than the currently recorded one
$writes[$key]['class'] = $class;
}

View File

@ -2,6 +2,7 @@
namespace SilverStripe\FullTextSearch\Solr;
use Exception;
use SilverStripe\Control\Director;
use SilverStripe\Core\Environment;
use SilverStripe\FulltextSearch\Search\Indexes\SearchIndex;