mirror of
https://github.com/fantasticit/think.git
synced 2026-09-01 15:10:55 +08:00
Merge pull request #134 from fantasticit/fix/mail-error
server: throw error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user