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

14 lines
490 B
JavaScript

// Metro module 278 (f279).
import reportException, { SyntheticError } from "./reportException";
export default {
showErrorDialog: ({ componentStack, error }) => {
const r3 = error instanceof Error ? error : typeof error === "string" ? new SyntheticError(error) : new SyntheticError("Unspecified error");
try {
r3.componentStack = componentStack;
r3.isComponentError = true;
} catch ($e) {}
reportException.handleException(r3, false);
return false;
}
};