use correct error code

This commit is contained in:
Marc Michalsky 2023-08-16 14:32:38 +02:00 committed by Jens Schuppe
parent a16be91822
commit 6f6b9e0599

View file

@ -298,7 +298,7 @@ class CRM_Twingle_Profile {
} catch (Exception $e) {
throw new ProfileException(
E::ts("Could not delete profile: %1", [1 => $e->getMessage()]),
ProfileException::ERROR_CODE_COULD_NOT_RESET_PROFILE
ProfileException::ERROR_CODE_COULD_NOT_DELETE_PROFILE
);
}
}