add detailed error message for weak reference without path.