Describe the bug
While the check command check that the given file is a CRU file, it doesn't check that the date contained in the file has a valid CRU syntax and parses it anyway.
To Reproduce
Steps to reproduce the behavior:
- Create a CRU file in the current folder with nothing in it
- Run the following command
node ./caporalCli.js check fileName.cru
- Observe that the command still works and doesn't indicate an error
Expected behavior
An error message should indicate to the user that the CRU file given doesn't have a valide CRU syntax.
Desktop (please complete the following information):
- OS: Windows 11
- Node v22.11.0