Fix return-type error messages.