This commit is contained in:
Timur A. Fatkhullin 2025-12-08 17:34:59 +03:00
parent 196ed3be1b
commit 57467ce48f
2 changed files with 6 additions and 5 deletions

View File

@ -111,16 +111,17 @@ int main(int argc, char* argv[])
logger->info("\n");
logger->set_pattern("[%Y-%m-%d %T.%e][%l]: %v");
std::string mount_cfg_fname = opt_result["config"].as<std::string>();
if (mount_cfg_fname.size()) {
logger->info("Try to load mount configuration from file: {}", mount_cfg_fname);
auto err = mount_cfg.load(mount_cfg_fname);
if (err) {
logger->error("Cannot load mount configuration (err = {})! Use defaults!", err.message());
logger->error("Cannot load mount configuration (err = {})! Use of defaults!", err.message());
} else {
logger->info("Mount configuration was loaded successfully!");
}
logger->info("\n");
}
asibfm700::Asibfm700Mount mount(mount_cfg, logger);

View File

@ -621,7 +621,7 @@ public:
// check for target in p-zone
*_lastError = _checkTargetFunc();
if (_lastError->load()) { // return here immidiately
if (_lastError->load()) { // return here immediately
return *_lastError;
}