MCPcopy
hub / github.com/OpenPipe/OpenPipe / error

Function error

app/src/utils/errorHandling/standardResponses.ts:3–8  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

1import { z, type ZodTypeAny } from "zod";
2
3export function error(message: string): { status: "error"; message: string } {
4 return {
5 status: "error",
6 message,
7 };
8}
9export function success<T>(payload: T): { status: "success"; payload: T };
10export function success(payload?: undefined): { status: "success"; payload: undefined };
11export function success<T>(payload?: T) {

Callers 14

users.router.tsFile · 0.90
archives.router.tsFile · 0.90
datasets.router.tsFile · 0.90
payments.router.tsFile · 0.90
exportWeights.tsFile · 0.90
createFineTuneFunction · 0.90
createFineTune.tsFile · 0.90
chargeInvoiceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected