change datasource => source for compliance with js

This commit is contained in:
Konstantin Käfer
2014-03-12 12:46:28 +01:00
parent 72ac0c9c31
commit 207358b598
3 changed files with 18 additions and 18 deletions

View File

@@ -154,11 +154,11 @@ BucketDescription loadBucketJSON(const rapidjson::Value& value) {
} else {
throw Style::exception("bucket type must be a string");
}
} else if (name == "datasource") {
} else if (name == "source") {
if (value.IsString()) {
bucket.source_name = { value.GetString(), value.GetStringLength() };
} else {
throw Style::exception("datasource name must be a string");
throw Style::exception("source name must be a string");
}
} else if (name == "layer") {
if (value.IsString()) {