-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACP-3738 Fixed Disconnect message. #15
Changes from 3 commits
c081109
c077adb
fe79a81
3a58fc8
4764699
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ class ConfigWriter implements ConfigWriterInterface | |
/** | ||
* @var string | ||
*/ | ||
protected const FAILED_TO_REGISTER_TENANT_MESSAGE = 'Tenant registration failed'; | ||
protected const FAILED_TO_OPERATION_TENANT_MESSAGE = 'Tenant operation failed'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The constant is not in correct English. Should be |
||
|
||
/** | ||
* @param array<\Spryker\Zed\AppKernelExtension\Dependency\Plugin\ConfigurationBeforeSavePluginInterface> $configurationBeforeSavePlugins | ||
|
@@ -59,14 +59,14 @@ public function saveConfig(AppConfigTransfer $appConfigTransfer): AppConfigRespo | |
return $this->getSuccessResponse($appConfigTransfer); | ||
} catch (Throwable $throwable) { | ||
$this->getLogger()->error( | ||
static::FAILED_TO_REGISTER_TENANT_MESSAGE, | ||
static::FAILED_TO_OPERATION_TENANT_MESSAGE, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is the message is generic here if the method is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it processes connect, new, disconnect statuses. you can check |
||
[ | ||
'tenantIdentifier' => $appConfigTransfer->getTenantIdentifier(), | ||
'exception' => $throwable, | ||
], | ||
); | ||
|
||
return $this->getFailResponse(sprintf('%s: %s', static::FAILED_TO_REGISTER_TENANT_MESSAGE, $throwable->getMessage())); | ||
return $this->getFailResponse(sprintf('%s: %s', static::FAILED_TO_OPERATION_TENANT_MESSAGE, $throwable->getMessage())); | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.