summaryrefslogtreecommitdiffstats
path: root/src/trex_client_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trex_client_config.cpp')
-rw-r--r--src/trex_client_config.cpp9
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");