feat: Add add-template command to register local template sources
This commit is contained in:
@@ -169,7 +169,8 @@
|
||||
}
|
||||
|
||||
// Check if this directory contains template_info.env
|
||||
if (std::filesystem::exists(it->path() / filenames::template_info_env)) {
|
||||
std::error_code ec;
|
||||
if (std::filesystem::exists(it->path() / filenames::template_info_env, ec) && !ec) {
|
||||
// Get relative path from root
|
||||
std::string rel = std::filesystem::relative(it->path(), root).string();
|
||||
result.push_back(rel);
|
||||
|
||||
Reference in New Issue
Block a user