diff --git a/src/main/java/com/eactive/eai/outbound/DefaultProcess.java b/src/main/java/com/eactive/eai/outbound/DefaultProcess.java index eb1342e..79005e1 100644 --- a/src/main/java/com/eactive/eai/outbound/DefaultProcess.java +++ b/src/main/java/com/eactive/eai/outbound/DefaultProcess.java @@ -676,9 +676,10 @@ public abstract class DefaultProcess extends Process { String errorResponseHandlerClass = AdapterPropManager.getInstance().getProperty(inboundAdapterVO.getPropGroupName(), "ERR_MSG_HANDLER"); if(StringUtils.isBlank(errorResponseHandlerClass)) { this.resEaiMsg.setRspErrCd("RECEAIINA001", false); -// String errorCode = mapper.getErrorCode(resStandardMessage); - String errorMsg = mapper.getErrorMsg(resStandardMessage); - this.resEaiMsg.setRspErrMsg(errorMsg); + String errorCode = mapper.getErrorCode(resStandardMessage); + String errorMsg = StringUtils.trim(mapper.getErrorMsg(resStandardMessage)); + String errorDesc = StringUtils.trim(resStandardMessage.findItemValue("Message.Msg_Body.OUTPUT_MSG_DESC")); + this.resEaiMsg.setRspErrMsg(String.format("[%s] %s (%s)", errorCode, errorMsg, errorDesc)); return; }