Improved logging for loading Lua configurations. (#4)

master
Damon Kohler 2016-08-23 01:31:36 -07:00 committed by GitHub
parent 6e56578394
commit cf9e365bc2
1 changed files with 2 additions and 1 deletions

View File

@ -37,10 +37,11 @@ string ConfigurationFileResolver::GetFullPathOrDie(const string& basename) {
const string filename = path + "/" + basename;
std::ifstream stream(filename.c_str());
if (stream.good()) {
LOG(INFO) << "Found '" << filename << "' for '" << basename << "'.";
return filename;
}
}
LOG(FATAL) << "File " << basename << " was not found.";
LOG(FATAL) << "File '" << basename << "' was not found.";
}
string ConfigurationFileResolver::GetFileContentOrDie(const string& basename) {