From 327c350b8549fec8311179ed004cc6c22424bd4b Mon Sep 17 00:00:00 2001 From: jean-marie leroux Date: Sat, 25 Jan 2014 22:11:03 +0100 Subject: [PATCH] Change error message when no role found A more explicit message. --- library/Zend/Permissions/Rbac/Rbac.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Permissions/Rbac/Rbac.php b/library/Zend/Permissions/Rbac/Rbac.php index 3cad4faeca8..aa903e6e648 100644 --- a/library/Zend/Permissions/Rbac/Rbac.php +++ b/library/Zend/Permissions/Rbac/Rbac.php @@ -116,7 +116,7 @@ public function getRole($objectOrName) } throw new Exception\InvalidArgumentException(sprintf( - 'No child with name "%s" could be found', + 'No role with name "%s" could be found', is_object($objectOrName) ? $objectOrName->getName() : $objectOrName )); }