Skip to content

Commit 9013a16

Browse files
committed
uncomment exception.
1 parent 7f34c34 commit 9013a16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Queue/PopulateProcessor.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function process(PsrMessage $message, PsrContext $context)
5151

5252
$objectsCount = 0;
5353

54-
// try {
54+
try {
5555
$data = JSON::decode($message->getBody());
5656

5757
if (!isset($data['options'])) {
@@ -82,9 +82,9 @@ public function process(PsrMessage $message, PsrContext $context)
8282
$pagerPersister->insert($pager, $options);
8383

8484
return Result::reply($this->createReplyMessage($context, $message, $objectsCount));
85-
// } catch (\Throwable $e) {
86-
// return Result::reply($this->createExceptionReplyMessage($context, $message, $objectsCount, $e), Result::REJECT);
87-
// }
85+
} catch (\Throwable $e) {
86+
return Result::reply($this->createExceptionReplyMessage($context, $message, $objectsCount, $e), Result::REJECT);
87+
}
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)