Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
magurotuna opened this issue May 27, 2024 · 1 comment
Closed
Labels
good first issue Good for newcomers

Comments

@magurotuna
Copy link
Member

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

@XIPEGM
Copy link

XIPEGM commented Jun 3, 2024

非常开心,我提的一个小建议能够被Deno采纳,祝愿Deno越来越好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants