This commit is contained in:
@@ -94,11 +94,11 @@ int edit_config()
|
||||
|
||||
std::string config_file = localfile::dropshell_json();
|
||||
if (!edit_file(config_file, false) || !std::filesystem::exists(config_file))
|
||||
return die("Error: Failed to edit config file.");
|
||||
return die("Failed to edit config file.");
|
||||
|
||||
gConfig().load_config();
|
||||
if (!gConfig().is_config_set())
|
||||
return die("Error: Failed to load and parse edited config file!");
|
||||
return die("Failed to load and parse edited config file!");
|
||||
|
||||
gConfig().save_config(true);
|
||||
|
||||
@@ -112,7 +112,7 @@ int edit_config()
|
||||
int edit_server(const std::string &server_name)
|
||||
{
|
||||
if (localpath::server(server_name).empty()) {
|
||||
std::cerr << "Error: Server not found: " << server_name << std::endl;
|
||||
error << "Server not found: " << server_name << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user