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