Skip to content

Handle case where input is a directory better#433

Merged
mathialo merged 1 commit intomasterfrom
catch-dir-states
Mar 18, 2025
Merged

Handle case where input is a directory better#433
mathialo merged 1 commit intomasterfrom
catch-dir-states

Conversation

@mathialo
Copy link
Copy Markdown
Contributor

If a user configures a directory and not a simple file as the state store location, the error message produced is not very easy to understand. On windows in particular, it results in a "permission denied" error.

This adds a more descriptive error message

If a user configures a directory and not a simple file as the state
store location, the error message produced is not very easy to
understand. On windows in particular, it results in a "permission
denied" error.

This adds a more descriptive error message
@mathialo mathialo requested a review from a team as a code owner March 10, 2025 10:03
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.25%. Comparing base (eaffda2) to head (08490bf).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #433      +/-   ##
==========================================
+ Coverage   75.22%   75.25%   +0.02%     
==========================================
  Files          42       42              
  Lines        3496     3499       +3     
==========================================
+ Hits         2630     2633       +3     
  Misses        866      866              
Files with missing lines Coverage Δ
cognite/extractorutils/configtools/elements.py 80.75% <100.00%> (+0.37%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@toondaey toondaey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mathialo mathialo requested review from a team and dbrattli and removed request for a team March 14, 2025 09:44
@rbtcollins
Copy link
Copy Markdown

🦄

@mathialo mathialo merged commit cdf870f into master Mar 18, 2025
6 checks passed
@mathialo mathialo deleted the catch-dir-states branch March 18, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants