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
+1 -1
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);
}
}