mirror of https://github.com/fantasticit/think.git
server: throw error
This commit is contained in:
parent
db9eb21daa
commit
0cde4bf977
|
@ -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