Open arnauorriols opened 1 day ago
Caused by use of non-standard error.code
property:
try {
repoUrl = new URL(example)
} catch (error: unknown) {
const err = error as Error & { code: string | undefined }
if (err.code !== 'ERR_INVALID_URL') {
console.error(error)
process.exit(1)
}
}
Version: Deno 2.0.2 Error: