Updated error messages

This commit is contained in:
Netkas 2023-06-23 00:31:06 -04:00
parent 8f3be08f57
commit 1be08be54d
No known key found for this signature in database
GPG key ID: 5DAF58535614062B

View file

@ -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;