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

Missing or invalid config file needs explicit error handling #9

Open
tarkatronic opened this issue Jan 26, 2021 · 0 comments
Open

Missing or invalid config file needs explicit error handling #9

tarkatronic opened this issue Jan 26, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers loaders Related to one or more of the loaders

Comments

@tarkatronic
Copy link
Contributor

Right now if you fail to specify a filename on the command line, or you point to an invalid file, you get an error along the lines of:

NOTE: This is a dry run. Actions will not actually be performed.
node:internal/process/promises:227
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, open 'membership.toml'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: 'membership.toml'
}

This should have a friendly error message telling the user that the file was not found, as opposed to a stack trace.

@tarkatronic tarkatronic added bug Something isn't working good first issue Good for newcomers labels Jan 26, 2021
@tarkatronic tarkatronic added the loaders Related to one or more of the loaders label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers loaders Related to one or more of the loaders
Projects
None yet
Development

No branches or pull requests

1 participant