fix(council): add error logging to empty catch in council-finalize-helpers
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -46,7 +46,7 @@ export async function movePromptFile(
|
|||||||
log("[council-finalize] Rename failed, falling back to copy", { promptFile: promptFilePath, error: String(renameErr) })
|
log("[council-finalize] Rename failed, falling back to copy", { promptFile: promptFilePath, error: String(renameErr) })
|
||||||
const content = await readFile(absPromptSrc, "utf-8")
|
const content = await readFile(absPromptSrc, "utf-8")
|
||||||
await writeFile(absPromptDest, content, "utf-8")
|
await writeFile(absPromptDest, content, "utf-8")
|
||||||
await unlink(absPromptSrc).catch(() => {})
|
await unlink(absPromptSrc).catch((err) => { log("[council-finalize] Failed to delete prompt source file", { error: String(err) }) })
|
||||||
})
|
})
|
||||||
return toPosixPath(join(relArchiveDir, promptFilename))
|
return toPosixPath(join(relArchiveDir, promptFilename))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user