From fffad01516b0e591b16ac88fcabd2a0cfa6ceb9e Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 6 Jan 2025 04:37:32 -0500 Subject: [PATCH] Fix exception message in delete display picture method --- .../Classes/StandardMethods/SettingsDeleteDisplayPicture.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Socialbox/Classes/StandardMethods/SettingsDeleteDisplayPicture.php b/src/Socialbox/Classes/StandardMethods/SettingsDeleteDisplayPicture.php index 7e86818..9d4a95c 100644 --- a/src/Socialbox/Classes/StandardMethods/SettingsDeleteDisplayPicture.php +++ b/src/Socialbox/Classes/StandardMethods/SettingsDeleteDisplayPicture.php @@ -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);