1
0
Fork 0

fixed wrong usage of ArangoError

This commit is contained in:
Jan Steemann 2013-01-18 10:27:12 +01:00
parent 752b9a4846
commit a0251be088
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
var arangodb = require("org/arangodb");
var ArangoError = arangodb.ArangoError;
var ArangoError = require("org/arangodb/arango-error").ArangoError;
var output = arangodb.output;
// forward declaration
@ -1021,7 +1021,7 @@ SimpleQueryNear = function (collection, latitude, longitude, iid) {
if (this._index === null) {
var err = new ArangoError();
err.errorNum = arangodb.ERROR_QUERY_GEO_INDEX_MISSING.code;
err.errorNum = arangodb.ERROR_QUERY_GEO_INDEX_MISSING;
err.errorMessage = arangodb.errors.ERROR_QUERY_GEO_INDEX_MISSING.message;
throw err;
}