print error to screen