Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
joanvallve committed Jul 25, 2024
1 parent 8c96b86 commit 7071529
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/yaml_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,11 @@ filesystem::path findFileRecursive(const std::string& name_with_extension, const
}
std::string folders_str;
for (auto folder : folders) folders_str += folder + ", ";
folders_str.pop_back();
folders_str.back() = '.';
if (not folders_str.empty())
{
folders_str.pop_back();
folders_str.back() = '.';
}
throw std::runtime_error("File '" + name_with_extension + "' not found in provided folders: " + folders_str);
}

Expand Down

0 comments on commit 7071529

Please sign in to comment.