Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Render name of alias that already exists in exception message #3139

Conversation

localheinz
Copy link
Member

I find it quite useful to see the name of the alias that already exists, therefore I added it to the exception message.

throw new Exception\InvalidServiceNameException('An alias by this name already exists');
throw new Exception\InvalidServiceNameException(sprintf(
'An alias by the name "%s" already exists',
$alias
Copy link
Member

Choose a reason for hiding this comment

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

should cover $cAlias too

Copy link
Member Author

Choose a reason for hiding this comment

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

Shall I fix something here?

@localheinz
Copy link
Member Author

@Maks3w I've updated the exception message. Should it be more verbose?

@Maks3w Maks3w merged commit 9d88ba9 into zendframework:master Dec 3, 2012
@Maks3w
Copy link
Member

Maks3w commented Dec 3, 2012

Thank you @localheinz this is enough, if not you can spend a long time looking for a ghost bug when the exception message hides the other reason

gianarb pushed a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants