This commit is contained in:
Your Name
2025-04-30 19:43:50 +12:00
parent feb7dc6da6
commit 32da3d5fbc

View File

@ -230,6 +230,9 @@ void get_all_service_env_vars(const std::string &server_name, const std::string
auto it = all_env_vars.find("TEMPLATE"); auto it = all_env_vars.find("TEMPLATE");
if (it == all_env_vars.end()) { if (it == all_env_vars.end()) {
std::cerr << "Error: TEMPLATE variable not defined in service " << service_name << " on server " << server_name << std::endl; std::cerr << "Error: TEMPLATE variable not defined in service " << service_name << " on server " << server_name << std::endl;
std::cerr << "The TEMPLATE variable is required to determine the template name." << std::endl;
std::cerr << "Please check the service.env file and the .template_info.env file in:" << std::endl;
std::cerr << " " << localpath::service(server_name, service_name) << std::endl;
return; return;
} }
std::string template_name = it->second; std::string template_name = it->second;