EntityManager: Rename findJsonFiles() to loadConfigurations()
loadConfigurations() seems like a better description of its job.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ib37de324ee6157d4d12be99a7f8f76de0583f40b
diff --git a/src/EntityManager.cpp b/src/EntityManager.cpp
index d69af0b..493dbfb 100644
--- a/src/EntityManager.cpp
+++ b/src/EntityManager.cpp
@@ -765,7 +765,7 @@
}
// reads json files out of the filesystem
-bool findJsonFiles(std::list<nlohmann::json>& configurations)
+bool loadConfigurations(std::list<nlohmann::json>& configurations)
{
// find configuration files
std::vector<std::filesystem::path> jsonPaths;
@@ -1032,9 +1032,9 @@
*missingConfigurations = systemConfiguration;
std::list<nlohmann::json> configurations;
- if (!findJsonFiles(configurations))
+ if (!loadConfigurations(configurations))
{
- std::cerr << "cannot find json files\n";
+ std::cerr << "Could not load configurations\n";
inProgress = false;
return;
}