diff --git a/pytools/persistent_dict.py b/pytools/persistent_dict.py index 02b14dce020131e086f3d7b1da150e88808c79e7..3b25d8eecd82fac0a1ce62c6074e2bf5d31c19c2 100644 --- a/pytools/persistent_dict.py +++ b/pytools/persistent_dict.py @@ -461,9 +461,11 @@ class _PersistentDictBase(object): from warnings import warn warn("%s: key collision in cache at '%s' -- these are " "sufficiently unlikely that they're often " - "indicative of a broken implementation " - "of equality comparison" + "indicative of a broken hash key implementation " + "(that is not considering some elements relevant " + "for equality comparison)" % (self.identifier, self.container_dir)) + # This is here so we can debug the equality comparison stored_key == key raise NoSuchEntryError(key)