I use this function in PHP
try {
$result = Backendless::$UserService->restorePassword($email);
} catch (Exception $e) {
echo "Sorry, there was an error: ".$e->getMessage();
}
If there is a valid email address in the database,no issues, $result = null.
But if there isn’t a valid entry in the database, I got an internal server error 500!
What am I doing wrong here? How do i retrieve the error code in PHP?