mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Use more granular exceptions and error messages in important modules
This commit is contained in:
parent
10c8d11785
commit
08964804be
6 changed files with 13 additions and 13 deletions
|
|
@ -82,7 +82,7 @@ class commentView extends comment
|
|||
$oComment = $oCommentModel->getComment($comment_srl);
|
||||
if(!$oComment->isExists())
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||
}
|
||||
// Check permissions
|
||||
if(!$oComment->isAccessible())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue