CRAP Complexity Coverage Location
2.15 2 4/6 (66.67%) crap/file-system.service.ts (L47 - L56)
    private async loadFile({ path, type }: { path: string | URL; type: LoadedFile }): Promise<string> {
        try {
            const data = await readFile(path, "utf-8");
            this.logger.debug(`Loaded ${type} from "${path}".`);
            return data;
        } catch (error) {
            this.logger.error(`Failed to load ${type} from "${path}".`, { error });
            throw new LoadFileError({ path, type });
        }
    }