Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
errMessage = "UNSUPPORTED REQUEST !! " + request.schema.name;
console.log(errMessage);
debugLog(chalk.red.bold(errMessage));
response = makeServiceFault(StatusCodes.BadNotImplemented, [errMessage]);
channel.send_response("MSG", response, message, emptyCallback);
}
} catch (err) {
/* istanbul ignore if */
const errMessage1 = "EXCEPTION CAUGHT WHILE PROCESSING REQUEST !! " + request.schema.name;
console.log(chalk.red.bold(errMessage1));
console.log(request.toString());
display_trace_from_this_projet_only(err);
let additional_messages = [];
additional_messages.push("EXCEPTION CAUGHT WHILE PROCESSING REQUEST !!! " + request.schema.name);
additional_messages.push(err.message);
if (err.stack) {
additional_messages = additional_messages.concat(err.stack.split("\n"));
}
response = makeServiceFault(StatusCodes.BadInternalError, additional_messages);
channel.send_response("MSG", response, message, emptyCallback);
}
}
console.log(errMessage);
debugLog(errMessage.red.bold);
response = makeServiceFault(StatusCodes.BadNotImplemented, [errMessage]);
channel.send_response("MSG", response, message);
}
} catch (err) {
/* istanbul ignore if */
if (err) {
errMessage = "EXCEPTION CAUGHT WHILE PROCESSING REQUEST !! " + request.schema.name;
console.log(errMessage.red.bold);
console.log(request.toString());
display_trace_from_this_projet_only(err);
let additional_messages = [];
additional_messages.push("EXCEPTION CAUGHT WHILE PROCESSING REQUEST !!! " + request.schema.name);
additional_messages.push(err.message);
if (err.stack) {
additional_messages = additional_messages.concat(err.stack.split("\n"));
}
response = makeServiceFault(StatusCodes.BadInternalError, additional_messages);
channel.send_response("MSG", response, message);
}
}
};