From 1281a19bd996f6d123eb702b08719c0979510f15 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Tue, 14 Nov 2023 18:45:51 +0800 Subject: [PATCH] Fix ExceptionHandler --- src/main/kotlin/top/fatweb/api/handler/ExceptionHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/top/fatweb/api/handler/ExceptionHandler.kt b/src/main/kotlin/top/fatweb/api/handler/ExceptionHandler.kt index 102aba0..e8d9150 100644 --- a/src/main/kotlin/top/fatweb/api/handler/ExceptionHandler.kt +++ b/src/main/kotlin/top/fatweb/api/handler/ExceptionHandler.kt @@ -84,7 +84,7 @@ class ExceptionHandler { else -> { logger.error(e.localizedMessage, e) - ResponseResult.fail(ResponseCode.SYSTEM_ERROR, e.localizedMessage, null) + ResponseResult.fail(ResponseCode.SYSTEM_ERROR, e.toString(), null) } } }