-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels