Skip to content

Commit

Permalink
Clarify bulk publisher log error message
Browse files Browse the repository at this point in the history
  • Loading branch information
supercid committed Sep 4, 2024
1 parent 83c1388 commit 0f26c96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Service/Sync/AbstractBulkPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ private function publishCollectionToMessageQueue(
);
if (!$result) {
/** @phan-suppress-next-line PhanTypeMismatchArgumentProbablyReal */
throw new LocalizedException(__('Something went wrong while processing the request.'));
throw new LocalizedException(__(
'Something went wrong while publishing bulk to RabbitMQ. Please check your connection'

Check warning on line 158 in Model/Service/Sync/AbstractBulkPublisher.php

View workflow job for this annotation

GitHub Actions / Phan Analysis

Argument 1 ($argc) is 'Something went wrong while publishing bulk to RabbitMQ. Please check your connection' of type 'Something went wrong while publishing bulk to RabbitMQ. Please check your connection' but \__() takes array (no real type) defined at vendor/magento/framework/Phrase/__.php:16 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
));
}
}

Expand Down

0 comments on commit 0f26c96

Please sign in to comment.