You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
If no
translations.yml
file is present in the working directory the following error message is printed: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 atwarning
level. Additionally, the program should first check if thetranslations.yml
file exists at all. If it is missing that should be logged atdebug
level. Any other errors while reading/parsing the file should be logged at a higher level.The text was updated successfully, but these errors were encountered: