@@ -168,10 +168,11 @@ |
||
| 168 | 168 | $domain = $_SERVER['HTTP_HOST']; |
| 169 | 169 | $company = $this->manager->getRepository(PeopleDomain::class)->findOneBy(['domain' => $domain]); |
| 170 | 170 | |
| 171 | - if ($company === null) |
|
| 172 | - throw new \Exception( |
|
| 171 | + if ($company === null) { |
|
| 172 | + throw new \Exception( |
|
| 173 | 173 | sprintf('Main company "%s" not found', $domain) |
| 174 | 174 | ); |
| 175 | + } |
|
| 175 | 176 | |
| 176 | 177 | return $company->getPeople(); |
| 177 | 178 | } |