This commit is contained in:
@@ -34,8 +34,8 @@ namespace dropshell
|
||||
std::vector<std::string> local_server_definition_paths = gConfig().get_local_server_definition_paths();
|
||||
if (local_server_definition_paths.empty())
|
||||
{
|
||||
std::cerr << "Error: No local server definition paths found" << std::endl;
|
||||
std::cerr << "Run 'dropshell edit' to configure DropShell" << std::endl;
|
||||
error << "No local server definition paths found" << std::endl;
|
||||
info << "Run 'dropshell edit' to configure DropShell" << std::endl;
|
||||
return services;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace dropshell
|
||||
auto service_info = get_service_info(server_name, service_name);
|
||||
if (service_info.local_template_path.empty())
|
||||
{
|
||||
std::cerr << "Error: Service not found: " << service_name << std::endl;
|
||||
error << "Service not found: " << service_name << std::endl;
|
||||
return commands;
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace dropshell
|
||||
auto service_info = get_service_info(server_name, service_name);
|
||||
if (service_info.local_template_path.empty())
|
||||
{
|
||||
std::cerr << "Error: Service not found: " << service_name << std::endl;
|
||||
error << "Service not found: " << service_name << std::endl;
|
||||
return backups;
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace dropshell
|
||||
|
||||
if (localpath::service(server_name, service_name).empty() || !fs::exists(localpath::service(server_name, service_name)))
|
||||
{
|
||||
std::cerr << "Error: Service not found: " << service_name << " on server " << server_name << std::endl;
|
||||
error << "Service not found: " << service_name << " on server " << server_name << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace dropshell
|
||||
template_info tinfo = gTemplateManager().get_template_info(it->second);
|
||||
if (!tinfo.is_set())
|
||||
{
|
||||
std::cerr << "Error: Template '" << it->second << "' not found" << std::endl;
|
||||
error << "Template '" << it->second << "' not found" << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user