Fix checkdoc warning about error messages