server: throw error

This commit is contained in:
fantasticit 2022-07-25 15:18:02 +08:00
parent db9eb21daa
commit 0cde4bf977
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);
}
}