deno icon indicating copy to clipboard operation
deno copied to clipboard

Show more explicit message when `deno task` cannot find a config file

Open magurotuna opened this issue 1 year ago • 0 comments

Issue

Currently, when we run deno task foo in a project that doesn't have deno.json(c) file, Deno just emits a message like this:

$ deno task foo
error: No config file found

If you are working in a project that has a few number of files, then it'd be very clear that what this message means that you don't have deno.json(c) file. However, if your project is using some framework that has its own configuration file, you would be very confused with what this message indicates and from where it is emitted.

Solution

Changing this message to something more explicit, for instance deno task error: No config file found. See https://deno.land/manual@v${DENO_VERSION}/getting_started/configuration_file, would be helpful

magurotuna avatar May 27 '24 07:05 magurotuna