diff --git a/shell/db.js b/shell/db.js index c101ea5c5e5..fbffde65719 100644 --- a/shell/db.js +++ b/shell/db.js @@ -468,6 +468,8 @@ DB.prototype.getLastErrorObj = function(){ throw "getlasterror failed: " + tojson( res ); return res; } +DB.prototype.getLastErrorCmd = DB.prototype.getLastErrorObj; + /* Return the last error which has occurred, even if not the very last error.