Skip to content

Commit

Permalink
Merge pull request #8924 from 11mb/improved_parseAlias_exception_message
Browse files Browse the repository at this point in the history
Improved parse alias exception message
  • Loading branch information
pamil committed Nov 10, 2017
2 parents 1cfcf9c + 672856c commit 919cf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sylius/Component/Resource/Metadata/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function getPermissionCode(string $permissionName): string
private static function parseAlias(string $alias): array
{
if (false === strpos($alias, '.')) {
throw new \InvalidArgumentException('Invalid alias supplied, it should conform to the following format "<applicationName>.<name>".');
throw new \InvalidArgumentException(sprintf('Invalid alias "%s" supplied, it should conform to the following format "<applicationName>.<name>".', $alias));
}

return explode('.', $alias);
Expand Down

0 comments on commit 919cf8d

Please sign in to comment.