DesignLiquido / DesignLiquido/delegua-node
Erro nem um pouco amigavel ao passar um arquivo inexistente
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
❯ delegua arquivo_inexistente
/usr/local/lib/node_modules/@designliquido/delegua-node/importador/importador.js:68
throw new excecoes_1.ErroImportacao(caminhoAbsolutoArquivo, `Não foi possível encontrar arquivo importado: ${nomeArquivo}.`);
^
ErroImportacao [Error]: Não foi possível encontrar arquivo importado: arquivo_inexistente.
at Importador.importar (/usr/local/lib/node_modules/@designliquido/delegua-node/importador/importador.js:68:19)
at NucleoExecucao.carregarEExecutarArquivo (/usr/local/lib/node_modules/@designliquido/delegua-node/nucleo-execucao.js:235:51)
at Delegua.executarCodigoPorArquivo (/usr/local/lib/node_modules/@designliquido/delegua-node/delegua.js:81:37)
at Object.principal (/usr/local/lib/node_modules/@designliquido/delegua-node/execucao.js:154:27)
at Object.<anonymous> (/usr/local/lib/node_modules/@designliquido/delegua-node/bin/delegua:3:24)
at Module._compile (node:internal/modules/cjs/loader:1705:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1838:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Module._load (node:internal/modules/cjs/loader:1263:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14) {
caminhoArquivo: '/home/fernandodev/delegua_x86/arquivo_inexistente'
}
Node.js v22.22.2
~/delegua_x86 18:33:36
❯
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report with delegua arquivo_inexistente, then inspect importador.js:68 and the surrounding import and CLI error-handling flow. The issue does not specify the desired wording, so first identify the project's expected user-facing error style; done means a missing-file invocation no longer emits the reported unfriendly output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100