hotfix/2026-01-12
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const CdkBase = require("../web-sockets/web-socket");
|
const { createLogEvent } = require("./createLogEvent");
|
||||||
|
|
||||||
const IMEX_CDK_USER = process.env.IMEX_CDK_USER,
|
const IMEX_CDK_USER = process.env.IMEX_CDK_USER,
|
||||||
IMEX_CDK_PASSWORD = process.env.IMEX_CDK_PASSWORD;
|
IMEX_CDK_PASSWORD = process.env.IMEX_CDK_PASSWORD;
|
||||||
@@ -14,7 +14,7 @@ const cdkDomain =
|
|||||||
function CheckCdkResponseForError(socket, soapResponse) {
|
function CheckCdkResponseForError(socket, soapResponse) {
|
||||||
if (!soapResponse[0]) {
|
if (!soapResponse[0]) {
|
||||||
//The response was null, this might be ok, it might not.
|
//The response was null, this might be ok, it might not.
|
||||||
CdkBase.createLogEvent(
|
createLogEvent(
|
||||||
socket,
|
socket,
|
||||||
"warn",
|
"warn",
|
||||||
`Warning detected in CDK Response - it appears to be null. Stack: ${new Error().stack}`
|
`Warning detected in CDK Response - it appears to be null. Stack: ${new Error().stack}`
|
||||||
@@ -43,11 +43,7 @@ function checkIndividualResult(socket, ResultToCheck) {
|
|||||||
//TODO: Verify that this is the best way to detect errors.
|
//TODO: Verify that this is the best way to detect errors.
|
||||||
return;
|
return;
|
||||||
else {
|
else {
|
||||||
CdkBase.createLogEvent(
|
createLogEvent(socket, "ERROR", `Error detected in CDK Response - ${JSON.stringify(ResultToCheck, null, 2)}`);
|
||||||
socket,
|
|
||||||
"ERROR",
|
|
||||||
`Error detected in CDK Response - ${JSON.stringify(ResultToCheck, null, 2)}`
|
|
||||||
);
|
|
||||||
|
|
||||||
throw new Error(`Error found while validating CDK response for ${JSON.stringify(ResultToCheck, null, 2)}:`);
|
throw new Error(`Error found while validating CDK response for ${JSON.stringify(ResultToCheck, null, 2)}:`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user