Real error throw and removing debugging console messages