mirror of https://gitee.com/bigwinds/arangodb
moved to actions.errors
This commit is contained in:
parent
0747d3703e
commit
ba26708f94
|
@ -426,9 +426,7 @@ function get_api_collection (req, res) {
|
|||
}
|
||||
|
||||
else {
|
||||
actions.resultNotFound(req,
|
||||
res,
|
||||
arangodb.errors.ERROR_HTTP_NOT_FOUND.code,
|
||||
actions.resultNotFound(req, res, actions.errors.ERROR_HTTP_NOT_FOUND,
|
||||
"expecting one of the resources 'count', 'figures', 'properties', 'parameter'");
|
||||
}
|
||||
}
|
||||
|
@ -699,9 +697,7 @@ function put_api_collection (req, res) {
|
|||
put_api_collection_rename(req, res, collection);
|
||||
}
|
||||
else {
|
||||
actions.resultNotFound(req,
|
||||
res,
|
||||
arangodb.errors.ERROR_HTTP_NOT_FOUND.code,
|
||||
actions.resultNotFound(req, res, actions.errors.ERROR_HTTP_NOT_FOUND,
|
||||
"expecting one of the actions 'load', 'unload', 'truncate', 'properties', 'rename'");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@ var internal = require("internal");
|
|||
|
||||
exports.db = internal.db;
|
||||
exports.ArangoCollection = internal.ArangoCollection;
|
||||
exports.errors = internal.errors;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @}
|
||||
|
|
Loading…
Reference in New Issue