prints out error