convex
Version:
Client for the Convex Cloud
19 lines (18 loc) • 464 B
JavaScript
;
import { nodeFs } from "../../bundler";
import * as Sentry from "@sentry/node";
export const oneoffContext = {
fs: nodeFs,
deprecationMessagePrinted: false,
async fatalError(exitCode, _reason, err) {
return await flushAndExit(exitCode, err);
}
};
async function flushAndExit(exitCode, err) {
if (err) {
Sentry.captureException(err);
}
await Sentry.close();
return process.exit(exitCode);
}
//# sourceMappingURL=context.js.map