@sentry/remix
Version:
Official Sentry SDK for Remix
22 lines (19 loc) • 539 B
JavaScript
import { captureException } from '@sentry/core';
import { isNodeEnv } from '@sentry/core/server';
import { isResponse } from '../utils/vendor/response.js';
function captureRemixErrorBoundaryError(error) {
if (isResponse(error) || isNodeEnv() || !(error instanceof Error)) {
return;
}
return captureException(error, {
mechanism: {
type: "instrument",
handled: false,
data: {
function: "ReactError"
}
}
});
}
export { captureRemixErrorBoundaryError };
//# sourceMappingURL=errors.js.map