Files
discord-decomp/_bundle/Module947.js
T
2026-11-01 12:12:55 +02:00

38 lines
976 B
JavaScript

// Metro module 947 (f948).
import { getClient } from "./Module848";
import { getActiveSpan } from "./spanToJSON";
import { SPAN_STATUS_ERROR } from "./Module840";
import { captureException } from "./captureCheckIn";
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
export function captureError(a0, a1, a2) {
L11: {
try {
if (getClient()) {
const activeSpan = getActiveSpan();
if (activeSpan == null ? void 0 : activeSpan.isRecording()) {
activeSpan.setStatus({
code: SPAN_STATUS_ERROR,
message: "internal_error"
});
}
captureException(a0, {
mechanism: {
type: "auto.ai.mcp_server",
handled: false,
data: {
error_type: a1 ? a1 : "handler_execution",
...a2
}
}
});
break L11;
}
} catch ($e) {
break L11;
}
return void 0;
}
}