Fix exception message in delete display picture method

This commit is contained in:
netkas 2025-01-06 04:37:32 -05:00
parent 6a922dcac2
commit fffad01516

View file

@ -26,12 +26,11 @@
try
{
// Set the password
RegisteredPeerManager::deleteDisplayPicture($request->getPeer());
}
catch(Exception $e)
{
throw new StandardException('Failed to update display picture: ' . $e->getMessage(), StandardError::INTERNAL_SERVER_ERROR, $e);
throw new StandardException('Failed to delete display picture: ' . $e->getMessage(), StandardError::INTERNAL_SERVER_ERROR, $e);
}
return $rpcRequest->produceResponse(true);