consolidated output to display function for both errors and standard
output