Figure out where error lies