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

Function fileNotFound

packages/web/src/lib/serviceError.ts:56–62  ·  view source on GitHub ↗
(fileName: string, repository: string)

Source from the content-addressed store, hash-verified

54}
55
56export const fileNotFound = (fileName: string, repository: string): ServiceError => {
57 return {
58 statusCode: StatusCodes.NOT_FOUND,
59 errorCode: ErrorCode.FILE_NOT_FOUND,
60 message: `File "${fileName}" not found in repository "${repository}"`,
61 };
62}
63
64export const unexpectedError = (message: string): ServiceError => {
65 return {

Callers 2

getFileSourceForRepoFunction · 0.90
getFileBlameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected