Skip to content

Commit 70bac8b

Browse files
Spamerczclaude
andcommitted
fix(preload): catch all exceptions in preloadRelations to prevent page failures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent db58d69 commit 70bac8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EntityManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function preloadRelations(
308308

309309
try {
310310
$this->findBy($elasticQuery, $class);
311-
} catch (\Spameri\Elastic\Exception\ElasticSearch $exception) {
311+
} catch (\Throwable $exception) {
312312
\Tracy\Debugger::log($exception->getMessage(), \Tracy\ILogger::CRITICAL);
313313
}
314314
}

0 commit comments

Comments
 (0)