This function is only used to locate the default location, and a user may specify its own.
So I think it does not make sense to show the error here.