(message: string)
| 88 | } |
| 89 | |
| 90 | export function dataDirIncompatible(message: string): ApiError { |
| 91 | return new ApiError(ApiErrorCode.DATA_DIR_INCOMPATIBLE, message) |
| 92 | } |
| 93 | |
| 94 | export function apiErrorFromUnknown(error: unknown): ApiError | null { |
| 95 | if (error instanceof ApiError) return error |
no outgoing calls
no test coverage detected