fixing error messages

This commit is contained in:
Ian Roddis
2021-11-11 12:02:37 -04:00
parent e7980d666b
commit ac3928c7f6
2 changed files with 2 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ std::unique_ptr<de::TaskExecutor> executorFactory(const rj::Value &config)
if (!execConf.IsObject()) if (!execConf.IsObject())
throw std::runtime_error("Executor config is not an object"); throw std::runtime_error("Executor config is not an object");
if (!execConf.HasMember("name")) if (!execConf.HasMember("name"))
throw std::runtime_error("Executor config is missing execger name"); throw std::runtime_error("Executor config is missing name");
if (!execConf.HasMember("config")) if (!execConf.HasMember("config"))
throw std::runtime_error("Executor config is missing config"); throw std::runtime_error("Executor config is missing config");
std::string name = execConf["name"].GetString(); std::string name = execConf["name"].GetString();

View File

@@ -357,7 +357,7 @@ namespace daggy {
throw std::runtime_error("Payload is not a dictionary."); throw std::runtime_error("Payload is not a dictionary.");
} }
if (!spec.HasMember("tag")) { if (!spec.HasMember("tag")) {
throw std::runtime_error("DAG Run is missing a name."); throw std::runtime_error("DAG Run is missing a tag.");
} }
if (!spec.HasMember("tasks")) { if (!spec.HasMember("tasks")) {
throw std::runtime_error("DAG Run has no tasks."); throw std::runtime_error("DAG Run has no tasks.");