MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / unexpectedError

Function unexpectedError

packages/web/src/lib/serviceError.ts:64–70  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

62}
63
64export const unexpectedError = (message: string): ServiceError => {
65 return {
66 statusCode: StatusCodes.INTERNAL_SERVER_ERROR,
67 errorCode: ErrorCode.UNEXPECTED_ERROR,
68 message: `Unexpected error: ${message}`,
69 };
70}
71
72export const lighthouseUnreachable = (url: string, error: unknown): ServiceError => {
73 const detail = error instanceof Error ? error.message : String(error);

Callers 15

sewFunction · 0.90
getFileSourceForRepoFunction · 0.90
getFilesFunction · 0.90
getFileBlameFunction · 0.90
getDiffFunction · 0.90
listCommitsFunction · 0.90
getFolderContentsFunction · 0.90
getTreeFunction · 0.90
getCommitFunction · 0.90
getPathTypeFunction · 0.90
listCommitAuthorsFunction · 0.90
zoektSearchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected