MCPcopy Create free account
hub / github.com/pingdotgg/t3code / errorMessage

Function errorMessage

apps/web/src/components/files/projectFilesQueryState.ts:114–118  ·  view source on GitHub ↗
(result: AsyncResult.AsyncResult<A, unknown>)

Source from the content-addressed store, hash-verified

112}
113
114function errorMessage<A>(result: AsyncResult.AsyncResult<A, unknown>): string | null {
115 if (result._tag !== "Failure") return null;
116 const cause = Cause.squash(result.cause);
117 return cause instanceof Error ? cause.message : "Workspace query failed.";
118}
119
120export function useProjectEntriesQuery(
121 environmentId: EnvironmentId,

Callers 2

useProjectEntriesQueryFunction · 0.70
useProjectFileQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected