MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / classifyGuacUpstreamFailure

Function classifyGuacUpstreamFailure

frontend/src/components/RdpViewer.jsx:215–226  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

213};
214
215export const classifyGuacUpstreamFailure = (message) => {
216 const lower = (message || "").toLowerCase();
217 if (
218 SECURITY_NEGOTIATION_PATTERNS.some((pattern) => lower.includes(pattern))
219 ) {
220 return "rdp_security_negotiation_failed";
221 }
222 if (AUTH_FAILURE_PATTERNS.some((pattern) => lower.includes(pattern))) {
223 return "rdp_auth_failed";
224 }
225 return "rdp_gateway_failed";
226};
227
228export const deriveCodeFromGuacStatus = (status) => {
229 const code = status?.code;

Callers 2

RdpViewer.test.jsxFile · 0.90
deriveCodeFromGuacStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected