Unify the error messages by using a single function: 'die()'.