Skip to content

Commit

Permalink
Improved the wording in server messages
Browse files Browse the repository at this point in the history
Switched to a more assertive style and paraphrased the message about missing addon versions.
Suggested by @shikadiqueen, approved by @Vultraz.
  • Loading branch information
kabachuha authored and irydacea committed Oct 15, 2020
1 parent 715594a commit 0f3af61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/campaignd/server.cpp
Expand Up @@ -252,7 +252,7 @@ void server::load_config()
}
if(std::find(legacy_addons.begin(), legacy_addons.end(), addon_id) == legacy_addons.end()) {
throw filesystem::io_exception("No file has been found for the legacy addon '" + addon_id
+ "'. Please, check the file structure!\n");
+ "'. Check the file structure!\n");
}

config data;
Expand Down Expand Up @@ -766,7 +766,7 @@ void server::handle_request_campaign(const server::request& req)
auto version_map = get_version_map(campaign);

if(version_map.empty()) {
send_error("No versions of the addon '" + req.cfg["name"].str() + "' have been found by the server!", req.sock);
send_error("No versions of the add-on '" + req.cfg["name"].str() + "' are available on the server.", req.sock);
return;
} else {
auto version = version_map.find(version_info(to));
Expand Down

0 comments on commit 0f3af61

Please sign in to comment.