Skip to content

Commit 45b3d1a

Browse files
committed
Change Exception Message
1 parent 86be6e6 commit 45b3d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/longcoding/moon/exceptions/ExceptionAdvice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ResponseEntity proxyServiceFailException(ProxyServiceFailException e, Htt
6868
log.error("{}", getStackTrace(e));
6969
ExceptionType exceptionType = ExceptionType.E_1102_OUTBOUND_SERVICE_IS_NOT_UNSTABLE;
7070
setHttpResponseErrorCode(request, ExceptionType.E_1102_OUTBOUND_SERVICE_IS_NOT_UNSTABLE.getCode());
71-
String message = messageManager.getProperty(exceptionType.getCode()) + e.getMessage();
71+
String message = messageManager.getProperty(exceptionType.getCode());
7272
CommonResponseEntity response = CommonResponseEntity.generateException(exceptionType.getCode(), message);
7373
return HttpHelper.newResponseEntityWithId(exceptionType.getHttpStatus(), response);
7474
}

0 commit comments

Comments
 (0)