The error() function should be used to diplay an error message. If the program should exit after printing the error message, use error_and_exit() function instead.