feat: Update 2 files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user