add error message when Mongo compact fails