fixing error messages
This commit is contained in:
@@ -162,7 +162,7 @@ std::unique_ptr<de::TaskExecutor> executorFactory(const rj::Value &config)
|
||||
if (!execConf.IsObject())
|
||||
throw std::runtime_error("Executor config is not an object");
|
||||
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"))
|
||||
throw std::runtime_error("Executor config is missing config");
|
||||
std::string name = execConf["name"].GetString();
|
||||
|
||||
@@ -357,7 +357,7 @@ namespace daggy {
|
||||
throw std::runtime_error("Payload is not a dictionary.");
|
||||
}
|
||||
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")) {
|
||||
throw std::runtime_error("DAG Run has no tasks.");
|
||||
|
||||
Reference in New Issue
Block a user