diff --git a/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java b/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java index 6534abf2fe..32bb4e9d89 100644 --- a/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java +++ b/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java @@ -32,7 +32,7 @@ public class RestControllerExceptionHandler { @ExceptionHandler(SQLException.class) - public ResultHolder sqlExceptionHandler(HttpServletRequest request, HttpServletResponse response, MSException e) { + public ResultHolder sqlExceptionHandler(HttpServletRequest request, HttpServletResponse response, SQLException e) { response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value()); return ResultHolder.error("SQL error happened, please check logs."); }