printing out error