Skip to content
Snippets Groups Projects
Commit 8decbca1 authored by Dmytrii Kaiun's avatar Dmytrii Kaiun Committed by Jonathan Sacksick
Browse files

Issue #3448319: Update form keys for error.

parent a14579be
No related branches found
No related tags found
1 merge request!13Issue #3448319: Update form keys for error
...@@ -232,9 +232,9 @@ class UPS extends ShippingMethodBase implements SupportsTrackingInterface { ...@@ -232,9 +232,9 @@ class UPS extends ShippingMethodBase implements SupportsTrackingInterface {
} }
catch (\Exception $e) { catch (\Exception $e) {
$this->messenger() $this->messenger()
->addError($this->t('Invalid client_id or secret specified.')); ->addError($this->t('Invalid <em>Client ID</em> or <em>Client Secret</em> specified.'));
$form_state->setError($form['credentials']['client_id']); $form_state->setError($form['api_information']['client_id']);
$form_state->setError($form['credentials']['secret']); $form_state->setError($form['api_information']['secret']);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment