(fileName: string, repository: string)
| 54 | } |
| 55 | |
| 56 | export 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 | |
| 64 | export const unexpectedError = (message: string): ServiceError => { |
| 65 | return { |
no outgoing calls
no test coverage detected