write out correct error message to bibtex file