This is the mongoose schema. I have added a post validation hook to it and I throw an error in it. I want to access the error message when I save the document for this schem