chore: log engine variant symlink error

This commit is contained in:
Louis 2025-01-16 11:52:59 +07:00
parent 3852ed6756
commit 99388f4418
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -138,9 +138,11 @@ const symlinkEngines = async () => {
await mkdir(path.join(symlinkEnginePath, variant), {
recursive: true,
}).catch(console.error)
}).catch((error) => log(JSON.stringify(error)))
await symlink(targetVariantPath, symlinkVariantPath).catch(console.error)
await symlink(targetVariantPath, symlinkVariantPath).catch((error) =>
log(JSON.stringify(error))
)
console.log(`Symlink created: ${targetVariantPath} -> ${symlinkEnginePath}`)
}
}