Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22519b2c authored by Ronak Patel's avatar Ronak Patel
Browse files

Added exceptions

parent 530daf3f
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -162,8 +162,7 @@ class UserService {
		$this->curl->delete($url, $params, $headers);

		if ($this->curl->getLastStatusCode() !== 200) {
			$this->logger->error('Error deleting mail folder of' . $email . '. Status Code: '.$this->curl->getLastStatusCode());
			throw new Exception();
			throw new Exception('Error deleting mail folder of' . $email . '. Status Code: '.$this->curl->getLastStatusCode());
		}
	}
	public function sendWelcomeEmail(string $displayname, string $username, string $userEmail, string $language = 'en') : void {