Adding location info to errors