diff options
| author | Dax Raad <[email protected]> | 2025-05-26 13:44:59 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-26 13:44:59 -0400 |
| commit | 113c49457fd6e37d517e2d212e2e6eb21084b4fb (patch) | |
| tree | 2507b9c125c98004276295379d4790f0b258c642 /js/src/util | |
| parent | e1ec815d1b6ad239f1e43258d760ecd48525daf2 (diff) | |
| download | opencode-113c49457fd6e37d517e2d212e2e6eb21084b4fb.tar.gz opencode-113c49457fd6e37d517e2d212e2e6eb21084b4fb.zip | |
ls tool
Diffstat (limited to 'js/src/util')
| -rw-r--r-- | js/src/util/log.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/util/log.ts b/js/src/util/log.ts index c15e4c59c..776d72839 100644 --- a/js/src/util/log.ts +++ b/js/src/util/log.ts @@ -14,8 +14,8 @@ export namespace Log { export async function file(directory: string) { const outPath = path.join(AppPath.data(directory), "opencode.out.log"); const errPath = path.join(AppPath.data(directory), "opencode.err.log"); - await fs.truncate(outPath); - await fs.truncate(errPath); + await fs.truncate(outPath).catch(() => {}); + await fs.truncate(errPath).catch(() => {}); const out = Bun.file(outPath); const err = Bun.file(errPath); const outWriter = out.writer(); |
