SUPPORT-9361: check socket error message for null
This commit is contained in:
parent
3a4a733c4b
commit
f56b9ac272
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
import ru.micord.ervu.account_applications.security.service.EncryptionService;
|
||||
import ru.micord.ervu.account_applications.service.UserApplicationListService;
|
||||
import ru.micord.ervu.account_applications.websocket.dto.ProcessErrorMsg;
|
||||
import ru.micord.ervu.account_applications.websocket.dto.ProcessResponseDto;
|
||||
|
||||
/**
|
||||
|
|
@ -46,7 +47,8 @@ public class UserApplicationController {
|
|||
}
|
||||
}
|
||||
case PROCESS_ERROR -> {
|
||||
String msg = data.body().msg().message();
|
||||
ProcessErrorMsg errorMsg = data.body().msg();
|
||||
String msg = errorMsg == null ? "unknown error" : errorMsg.message();
|
||||
LOGGER.error("error by traceId = {}, message: {}", traceId, msg);
|
||||
appNumber = applicationService.saveError(traceId, msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue