convex
Version:
Client for the Convex Cloud
18 lines (15 loc) • 593 B
text/typescript
import { logFailure, logMessage, Context } from "../../../bundler/context.js";
export class LocalDeploymentError extends Error {}
export function printLocalDeploymentOnError(ctx: Context) {
// Note: Not printing the error message here since it should already be printed by
// ctx.crash.
logFailure(ctx, `Hit an error while running local deployment.`);
logMessage(
ctx,
"Your error has been reported to our team, and we'll be working on it.",
);
logMessage(
ctx,
"To opt out, run `npx convex disable-local-deployments`. Then re-run your original command.",
);
}