Updating error messages.

Refs #267