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

Non-critical error in output: Running without translations.yml #3

Open
abid-mujtaba opened this issue Dec 29, 2022 · 0 comments
Open

Comments

@abid-mujtaba
Copy link
Contributor

If no translations.yml file is present in the working directory the following error message is printed:

Running without translations.yml [Error: ENOENT: no such file or directory, open './/translations.yml'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './/translations.yml'
}

This does not seem to be a critical error, in fact the logic suggests that program switches to using default language in this case: src.

Suggest using a logger instead of console.log and logging this error at warning level. Additionally, the program should first check if the translations.yml file exists at all. If it is missing that should be logged at debug level. Any other errors while reading/parsing the file should be logged at a higher level.

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