ConstElementPtr cfg = CfgMgr::instance().getCurrentCfg()->toElement();
size = writeConfigFile(filename, cfg);
} catch (const isc::Exception& ex) {
- return (createAnswer(CONTROL_RESULT_ERROR, string("Error during write-config: ")
+ return (createAnswer(CONTROL_RESULT_ERROR, string("Error during config-write: ")
+ ex.what()));
}
if (size == 0) {
EXPECT_EQ(1, cnt) << "Command " << command << " not found";
}
- /// @brief Check if the answer for write-config command is correct.
+ /// @brief Check if the answer for config-write command is correct.
///
/// @param response_txt response in text form (as read from
/// the control socket)
ConstElementPtr cfg = CfgMgr::instance().getCurrentCfg()->toElement();
size = writeConfigFile(filename, cfg);
} catch (const isc::Exception& ex) {
- return (createAnswer(CONTROL_RESULT_ERROR, string("Error during write-config: ")
+ return (createAnswer(CONTROL_RESULT_ERROR, string("Error during config-write: ")
+ ex.what()));
}
if (size == 0) {
EXPECT_EQ(1, cnt) << "Command " << command << " not found";
}
- /// @brief Check if the answer for write-config command is correct.
+ /// @brief Check if the answer for config-write command is correct.
///
/// @param response_txt response in text form (as read from
/// the control socket)
size = writeConfigFile(filename, cfg);
} catch (const isc::Exception& ex) {
return (createAnswer(CONTROL_RESULT_ERROR,
- std::string("Error during write-config:")
+ std::string("Error during config-write:")
+ ex.what()));
}
if (size == 0) {
/// @brief handler for config-write command
///
- /// This handle processes write-config command, which writes the
+ /// This handle processes config-write command, which writes the
/// current configuration to disk. This command takes one optional
/// parameter called filename. If specified, the current configuration
/// will be written to that file. If not specified, the file used during