updated error in collection driver

This commit is contained in:
Gabriel Grubba
2023-10-02 14:18:28 -03:00
parent 237528af89
commit df31380432

View File

@@ -49,7 +49,11 @@ Object.assign(MongoInternals.RemoteCollectionDriver.prototype, {
ret[m] = _.bind(self.mongo[m], self.mongo, name);
ret[m] = function (...args) {
throw new Error(`${m} is not available on the server-side. please use ${getAsyncMethodName(m)}()`);
throw new Error(
`${m} + is not available on the server. Please use ${getAsyncMethodName(
m
)}() instead.`
);
};
});
return ret;