mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed wrong error message
This commit is contained in:
1 parent
4a940734ec
commit
d0979e6581
2 files changed
+5
-5
No files matched your search
@@ -161,7 +161,7 @@ $utopia->post('/v1/auth/register')
|
||||
// return;
|
||||
// }
|
||||
|
||||
// throw new Exception('Problem sending mail: ' . $error->getError(), 500);
|
||||
// throw new Exception('Problem sending mail: ' . $error->getMessage(), 500);
|
||||
}
|
||||
|
||||
$webhook
|
||||
@@ -294,7 +294,7 @@ $utopia->post('/v1/auth/register/confirm/resend')
|
||||
try {
|
||||
$mail->send();
|
||||
} catch (\Exception $error) {
|
||||
//throw new Exception('Problem sending mail: ' . $error->getError(), 500);
|
||||
//throw new Exception('Problem sending mail: ' . $error->getMessage(), 500);
|
||||
}
|
||||
|
||||
$response->json(array('result' => 'success'));
|
||||
@@ -750,7 +750,7 @@ $utopia->post('/v1/auth/recovery')
|
||||
try {
|
||||
$mail->send();
|
||||
} catch (\Exception $error) {
|
||||
//throw new Exception('Problem sending mail: ' . $error->getError(), 500);
|
||||
//throw new Exception('Problem sending mail: ' . $error->getMessage(), 500);
|
||||
}
|
||||
|
||||
$audit
|
||||
|
||||
@@ -378,7 +378,7 @@ $utopia->post('/v1/teams/:teamId/memberships')
|
||||
try {
|
||||
$mail->send();
|
||||
} catch (\Exception $error) {
|
||||
//throw new Exception('Problem sending mail: ' . $error->getError(), 500);
|
||||
//throw new Exception('Problem sending mail: ' . $error->getMessage(), 500);
|
||||
}
|
||||
|
||||
$audit
|
||||
@@ -457,7 +457,7 @@ $utopia->post('/v1/teams/:teamId/memberships/:inviteId/resend')
|
||||
try {
|
||||
$mail->send();
|
||||
} catch (\Exception $error) {
|
||||
//throw new Exception('Problem sending mail: ' . $error->getError(), 500);
|
||||
//throw new Exception('Problem sending mail: ' . $error->getMessage(), 500);
|
||||
}
|
||||
|
||||
$audit
|
||||
|
||||
Reference in new issue
Block a user