mongodb / v3.6 / reference / reference-method-db.resetError.html

db.resetError()

db. resetError ( )

Deprecated since version 1.6.

Resets the error message returned by db.getPrevError or getPrevError. Provides a wrapper around the resetError command.