Skip to content

Commit

Permalink
Change error message when no role found
Browse files Browse the repository at this point in the history
A more explicit message.
  • Loading branch information
jmleroux committed Jan 25, 2014
1 parent 4fe2829 commit 327c350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Permissions/Rbac/Rbac.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
));
}
Expand Down

0 comments on commit 327c350

Please sign in to comment.