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

Fix copy invalid filepath #1426

Merged
merged 1 commit into from
Mar 31, 2023
Merged

Fix copy invalid filepath #1426

merged 1 commit into from
Mar 31, 2023

Conversation

acquamarin
Copy link
Collaborator

When copying files to node/rel tables, if the given filepath is invalid we should throw an exception.

@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (6675cf1) 92.64% compared to head (2b8241f) 92.64%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1426      +/-   ##
==========================================
- Coverage   92.64%   92.64%   -0.01%     
==========================================
  Files         650      650              
  Lines       22544    22547       +3     
==========================================
+ Hits        20886    20888       +2     
- Misses       1658     1659       +1     
Impacted Files Coverage Δ
src/binder/bind/bind_copy.cpp 86.74% <100.00%> (-0.76%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -40,6 +40,10 @@ std::vector<std::string> Binder::bindFilePaths(const std::vector<std::string>& f
std::vector<std::string> boundFilePaths;
for (auto& filePath : filePaths) {
auto globbedFilePaths = FileUtils::globFilePath(filePath);
if (globbedFilePaths.empty()) {
throw BinderException{StringUtils::string_format(
"No file found that matches the pattern: {}.", filePath)};
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess the common error msg should be file path not exists

@acquamarin acquamarin merged commit 120410f into master Mar 31, 2023
@acquamarin acquamarin deleted the glob-fix branch March 31, 2023 02:02
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.

None yet

2 participants