Merge pull request #134 from fantasticit/fix/mail-error

server: throw error
This commit is contained in:
fantasticit 2022-07-25 15:18:37 +08:00 committed by GitHub
commit cd024a3254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ export class UserService {
});
return '测试邮件发送成功';
} catch (err) {
throw new HttpException('测试邮件发送失败!', HttpStatus.BAD_REQUEST);
throw new HttpException(err.message || err, HttpStatus.BAD_REQUEST);
}
}