Print better error messages.