refactor: SQLException提示优化

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-07-18 09:27:12 +08:00 committed by liqiang-fit2cloud
parent 3023a31d3a
commit e9e035c4a1
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class RestControllerExceptionHandler {
public ResultHolder sqlExceptionHandler(HttpServletRequest request, HttpServletResponse response, SQLException e) {
response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value());
LogUtil.error(e.getMessage(), e);
return ResultHolder.error("SQL error happened, please check logs.");
return ResultHolder.error("Internal exception occured, please check logs or contact administrator.");
}
@ExceptionHandler(MSException.class)