Error messages

Correction in the error message text of four functions.