feat: Update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 30s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m13s

This commit is contained in:
j
2025-12-28 11:32:09 +13:00
parent 754b4de29b
commit 7763807445
2 changed files with 199 additions and 97 deletions

View File

@@ -254,8 +254,8 @@ int validate_handler(const CommandContext& ctx) {
info << "✓ Template '" << template_name << "' passed all checks!" << std::endl;
return 0;
} else if (errors == 0) {
warning << "Template '" << template_name << "' has " << warnings << " warning(s)" << std::endl;
return 0; // Warnings don't fail validation
error << "Template '" << template_name << "' has " << warnings << " warning(s)" << std::endl;
return 1; // Warnings fail validation
} else {
error << "Template '" << template_name << "' has " << errors << " error(s) and " << warnings << " warning(s)" << std::endl;
return 1;