modify locationmgr to print error's source file an path