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

Script globally catches error and outputs a generic disclaimer rather than printing a useful error #1039

Open
Jme797 opened this issue Aug 2, 2024 · 0 comments

Comments

@Jme797
Copy link

Jme797 commented Aug 2, 2024

🐛 Bug Report

In cli.js there is a snippet of code like

image

Globally catching all errors and outputting a string of text like Config file does not exist...

Using console.log to output this debug information prevents the script from exiting with a failing exit code instead it exits status 0, also it doesn't give useful information as to why the module was not found,

I think not catching the errors here would likely be a more useful output than a catch all that gives a very vague generic error message.

To Reproduce

A minimal reproducible example.
A codesandbox example or similar
or at least steps to reproduce the behavior:

// Paste your code here

Expected behavior

A clear and concise description of what you expected to happen.

// Paste the expected results here

Your Environment

  • runtime version: i.e. node v14, deno, browser xy
  • i18next version: i.e. 19.5.3
  • os: Mac, Windows, Linux
  • any other relevant information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant