fix issue when running opencode in empty directory
publish / publish (push) Has been cancelled

This commit is contained in:
Dax Raad
2025-06-18 10:29:09 -04:00
parent bc4bdfc1b1
commit 7e6fb4e0c8
+3 -4
View File
@@ -127,14 +127,13 @@ const cli = yargs(hideBin(process.argv))
) { ) {
cli.showHelp("log") cli.showHelp("log")
} }
Log.Default.error(msg, {
err,
})
}) })
.strict() .strict()
try { try {
await cli.parse() await cli.parse()
} catch (e) { } catch (e) {
Log.Default.error(e) Log.Default.error(e, {
stack: e instanceof Error ? e.stack : undefined,
})
} }