Skip to content

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

@abid-mujtaba

Description

@abid-mujtaba

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions