diff options
author | imarom <imarom@cisco.com> | 2016-07-03 10:55:49 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-07-03 13:40:23 +0300 |
commit | c6c4a4307a8a0ae17d3e26c9dc98b874dd5ee60b (patch) | |
tree | c32a0f0c6465b63e9857d19313ed13651cfd934a /src/trex_client_config.cpp | |
parent | ed196079a710ddc30552ecbc0329db7a75a4ca60 (diff) |
client config - cosmetics and gtest back on
Diffstat (limited to 'src/trex_client_config.cpp')
-rw-r--r-- | src/trex_client_config.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/trex_client_config.cpp b/src/trex_client_config.cpp index bb2b7772..8569cbf0 100644 --- a/src/trex_client_config.cpp +++ b/src/trex_client_config.cpp @@ -70,10 +70,8 @@ ClientCfgDB::load_yaml_file(const std::string &filename) { m_groups.clear(); m_cache_group = NULL; - m_filename = filename; - if (!utl_is_file_exists(filename)){ - ss << "*** file '" << filename << "' does not exists"; + ss << "file '" << filename << "' does not exists"; throw std::runtime_error(ss.str()); } @@ -85,12 +83,11 @@ ClientCfgDB::load_yaml_file(const std::string &filename) { try { base_parser.GetNextDocument(root); } catch (const std::runtime_error &ex) { - throw std::runtime_error("*** failed to parse client config file '" + filename + "'\n " + std::string(ex.what())); - + throw std::runtime_error("failed to parse client config file '" + filename + "'\n " + std::string(ex.what())); } /* wrapper parser */ - YAMLParserWrapper parser(m_filename); + YAMLParserWrapper parser(filename); /* parse globals */ m_under_vlan = parser.parse_bool(root, "vlan"); |