Updated error messages
This commit is contained in:
parent
8f3be08f57
commit
1be08be54d
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@
|
||||||
{
|
{
|
||||||
if(!$this->checkPermission(Methods::UPDATE_CLIENT_NAME, $this->resolveIdentity($identity)))
|
if(!$this->checkPermission(Methods::UPDATE_CLIENT_NAME, $this->resolveIdentity($identity)))
|
||||||
{
|
{
|
||||||
throw new Exceptions\Standard\AccessDeniedException('You do not have sufficient permission to change the name of a client');
|
throw new Exceptions\Standard\AccessDeniedException('You do not have sufficient permission to update the name of a client');
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exceptions\Standard\InternalServerException('There was an error while changing the client name', $e);
|
throw new Exceptions\Standard\InternalServerException('There was an error while updating the client name', $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue