Make "default-output" attribute optional.
This commit is contained in:
parent
d6acd74ec3
commit
20d5eb5698
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ void map_parser::parse_metawriter(Map & map, ptree const & pt)
|
|||
string type = get_attr<string>(pt, "type");
|
||||
if (type == "json") {
|
||||
string file = get_attr<string>(pt, "file");
|
||||
optional<string> properties = get_attr<string>(pt, "default-output");
|
||||
optional<string> properties = get_opt_attr<string>(pt, "default-output");
|
||||
writer = metawriter_ptr(new metawriter_json(properties, file));
|
||||
} else {
|
||||
throw config_error(string("Unknown type '") + type + "'");
|
||||
|
|
Loading…
Reference in a new issue