Skip to content

Commit 2acbc2c

Browse files
committed
fix: update debug messages in writeText and appendText functions for improved clarity
1 parent 5526ea9 commit 2acbc2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function writeText(fn: string, content: string) {
8585
if (!fn) throw new Error("filename is required");
8686
if (typeof content !== "string") throw new Error("content must be a string");
8787
await ensureDir(dirname(fn));
88-
dbg(`write text ${fn}`);
88+
dbg(`write text %s`, fn);
8989
await writeFile(fn, content, { encoding: "utf8" });
9090
}
9191

@@ -99,7 +99,7 @@ export async function writeText(fn: string, content: string) {
9999
export async function appendText(fn: string, content: string) {
100100
if (!fn) throw new Error("filename is required");
101101
await ensureDir(dirname(fn));
102-
dbg(`append text ${fn}`);
102+
dbg(`append text %s`, fn);
103103
await appendFile(fn, content, { encoding: "utf8" });
104104
}
105105

0 commit comments

Comments
 (0)