MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / serverError

Function serverError

apps/desktop/main/api/errors.ts:100–102  ·  view source on GitHub ↗
(message = 'Internal server error')

Source from the content-addressed store, hash-verified

98}
99
100export function serverError(message = 'Internal server error'): ApiError {
101 return new ApiError(ApiErrorCode.SERVER_ERROR, message)
102}
103
104export function apiErrorFromUnknown(error: unknown): ApiError | null {
105 if (error instanceof ApiError) return error

Callers 1

createServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected