Adding a location to the error object