Skip to content

Commit 5e55b73

Browse files
aman19KCopilot
andauthored
Update src/core/index.ts
Co-authored-by: Copilot <[email protected]>
1 parent 6a1a76c commit 5e55b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ const loadCheckpoint = (checkPointConfig: ICheckpoint, paths: any): void => {
146146
function readHiddenFile(filePath: string) {
147147
try {
148148
if (!fs.existsSync(filePath)) {
149-
console.error("File does not exist:", filePath);
149+
logger.error("File does not exist:", filePath);
150150
return;
151151
}
152152
const data = fs.readFileSync(filePath, "utf8");
153153
return JSON.parse(data);
154154
} catch (err) {
155-
console.error("Error reading file:", err);
155+
logger.error("Error reading file:", err);
156156
return undefined;
157157
}
158158
}

0 commit comments

Comments
 (0)