From e9e035c4a199f8c9d86b084f1ab240b3b31c37b3 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 18 Jul 2023 09:27:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20SQLException=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fit2-zhao --- .../controller/handler/RestControllerExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java index c5569620fb..ceac0e9794 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java @@ -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)