Skip to content
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

Fix typo and imporve error message #12687

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

dantleech
Copy link
Contributor

@dantleech dantleech commented Jun 2, 2021

Q A
Branch? 1.9
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

@dantleech dantleech requested a review from a team as a code owner June 2, 2021 15:43
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Jun 2, 2021
@dantleech dantleech changed the base branch from master to 1.9 June 2, 2021 15:44
@dantleech dantleech force-pushed the fix-typo-improve-error-message branch from 54c5592 to 0d47513 Compare June 2, 2021 15:45
@@ -131,7 +131,10 @@ private function getLocaleCode(?string $localeCode, ChannelInterface $channel):
}

if (!$this->hasLocaleWithLocaleCode($channel, $localeCode)) {
throw new \InvalidArgumentException('Choosen localeCode doesn\'t exist.');
throw new \InvalidArgumentException(sprintf(
'Cannot pick up cart, locale code "%s" does not exist.',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choosen should have been Chosen, but I changed the message to be a bit more explict.

@GSadee GSadee merged commit 1b13092 into Sylius:1.9 Jun 14, 2021
@GSadee
Copy link
Member

GSadee commented Jun 14, 2021

Thank you, @dantleech! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants