This commit is contained in:
Raven Scott
2026-04-05 04:33:14 -04:00
parent 4af98ef97b
commit 904ad7e7fd
48 changed files with 1905 additions and 219 deletions
+5 -1
View File
@@ -55,7 +55,11 @@ async function run(ctx, argv) {
if (modeOpt != null) mkOpts.mode = modeOpt
await ctx.vfs.mkdir(p, mkOpts)
} catch (e) {
ctx.console.error('mkdir: ' + p + ': ' + ((e && e.message) || e))
const code =
e && typeof e === 'object' && typeof e.code === 'string' ? e.code : ''
const base = (e && e.message) || String(e)
const tail = code ? `${code}: ${base}` : base
ctx.console.error(`mkdir: ${p}: ${tail}`)
ctx.exitCode = 1
}
}