14 lines
490 B
JavaScript
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;
|
|
}
|
|
};
|