Compare commits
1 commit
0e37be8c62
...
6c7d43916c
Author | SHA1 | Date | |
---|---|---|---|
6c7d43916c |
2 changed files with 3 additions and 2 deletions
|
@ -91,7 +91,7 @@ auto main(int argc, char** argv) -> int {
|
|||
vm["log_level"].as<int>(),
|
||||
SPDLOG_ACTIVE_LEVEL);
|
||||
}
|
||||
} catch(const po::error& e) {
|
||||
} catch(const std::exception& e) {
|
||||
SPDLOG_CRITICAL("Cmd parse error: {}", e.what());
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include <boost/program_options.hpp>
|
||||
#include <exception>
|
||||
#include <print>
|
||||
#include <stdexcept>
|
||||
|
||||
|
@ -47,7 +48,7 @@ auto main(int argc, char** argv) -> int {
|
|||
vm["log_level"].as<int>(),
|
||||
SPDLOG_ACTIVE_LEVEL);
|
||||
}
|
||||
} catch(const po::error& e) {
|
||||
} catch(const std::exception& e) {
|
||||
SPDLOG_CRITICAL("Cmd parse error: {}", e.what());
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue