Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

More explicit message when file not found #4

Closed
Guillaume-Lebegue opened this issue Aug 4, 2020 · 1 comment
Closed

More explicit message when file not found #4

Guillaume-Lebegue opened this issue Aug 4, 2020 · 1 comment

Comments

@Guillaume-Lebegue
Copy link

Is it possible to have a message when the file was not found?

Actually, when the file is not present, we only get:

error: Uncaught NotFound: Le fichier spécifié est introuvable. (os error 2)
    at unwrapResponse (rt\10_dispatch_json.js:25:13)
    at sendAsync (rt\10_dispatch_json.js:76:12)
    at async open (rt\30_files.js:52:17)
    at async Object.readFile (rt\40_read_file.js:15:18)
    at async mod.ts:29:1

And I had no way to find out that it was coming from a missing .env or even denv.

@crowlKats
Copy link
Owner

crowlKats commented Aug 4, 2020

I found this issue earlier. It should be fixed in 2.0.0
The automatic loading of env files has been removed though because it doesnt work.
Sadly the unhelpful error message is not really something i can fix. there is denoland/deno#6933 which would help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants