mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
e1b28a41a8
|
@ -189,8 +189,10 @@ _.extend(Application.prototype, {
|
||||||
} else {
|
} else {
|
||||||
cname = prefix + "_" + name;
|
cname = prefix + "_" + name;
|
||||||
}
|
}
|
||||||
|
|
||||||
var collection = db._collection(cname);
|
var collection = db._collection(cname);
|
||||||
|
if (!collection) {
|
||||||
|
throw new Error("collection with name '" + cname + "' does not exist.");
|
||||||
|
}
|
||||||
|
|
||||||
return new Repo(prefix, collection, model);
|
return new Repo(prefix, collection, model);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue