1
0
Fork 0

Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel

This commit is contained in:
Jan Steemann 2013-07-26 15:15:40 +02:00
commit e1b28a41a8
1 changed files with 4 additions and 2 deletions

View File

@ -189,9 +189,11 @@ _.extend(Application.prototype, {
} else {
cname = prefix + "_" + name;
}
var collection = db._collection(cname);
if (!collection) {
throw new Error("collection with name '" + cname + "' does not exist.");
}
return new Repo(prefix, collection, model);
},