Adding fixed error logging for locationerror