give reasonable error when argument to display contents is bad