mirror of https://github.com/fantasticit/think.git
Merge pull request #134 from fantasticit/fix/mail-error
server: throw error
This commit is contained in:
commit
cd024a3254
|
@ -340,7 +340,7 @@ export class UserService {
|
||||||
});
|
});
|
||||||
return '测试邮件发送成功';
|
return '测试邮件发送成功';
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new HttpException('测试邮件发送失败!', HttpStatus.BAD_REQUEST);
|
throw new HttpException(err.message || err, HttpStatus.BAD_REQUEST);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue