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

logging: add informative logging in case mounted pacta-data contains none of the expected data #25

Open
jdhoffa opened this issue Nov 22, 2024 · 0 comments
Labels
ADO Also Tracked on Azure DevOps documentation Improvements or additions to documentation

Comments

@jdhoffa
Copy link
Member

jdhoffa commented Nov 22, 2024

Currently, if the pacta-data directory is volume mounted incorrectly, the error message points to an issue with currencies.rds (since this is the first file that is read).
We could improve the developer experience by doing a first check if there are even any .rds files in the mounted directory at all. If not, give an informative error.

Current behaviour

cannot open compressed file
'/mnt/pacta-data/2023Q4_20240718T150252Z/currencies.rds', probable
reason 'No such file or directory'

Desired behaviour

Something along the lines of (feel free to adapt):

Error: No `.rds` files found in the specified `pacta-data` directory. 
Please ensure the volume mount is configured correctly and that the 
directory contains the expected files.

Hint: If you believe the files are present, check that the file paths match 
exactly, and verify the volume mount configuration in your setup.

AB#12256

@jdhoffa jdhoffa added the documentation Improvements or additions to documentation label Nov 22, 2024
@AlexAxthelm AlexAxthelm added the ADO Also Tracked on Azure DevOps label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADO Also Tracked on Azure DevOps documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants