Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Modification of the exception catch
Browse files Browse the repository at this point in the history
  • Loading branch information
callapa committed Mar 23, 2020
1 parent ed76054 commit dcca810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Centreon/Domain/Monitoring/ResourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function findResources(ResourceFilter $filter): array
// try to avoid exception from the regexp bad syntax in search criteria
try {
$list = $this->resourceRepository->findResources($filter);
} catch (ResourceException $ex) {
} catch (\Exception $ex) {
throw new ResourceException('Error while searching for resources', 0, $ex);
}

Expand Down

0 comments on commit dcca810

Please sign in to comment.