infocalypse
 
(Steve Dougherty)
2013-07-30: Clarify public key hash lookup failure.

Clarify public key hash lookup failure. Mentioning only the identifier does not make it clear that only the public key hash is used in a WoT lookup. It's also good to mention how to support more flexible lookup.

diff --git a/infocalypse/wot_id.py b/infocalypse/wot_id.py
--- a/infocalypse/wot_id.py
+++ b/infocalypse/wot_id.py
@@ -176,7 +176,9 @@ def _get_identity(wot_identifier, truste
 
     if response['Replies.Message'] == 'Error':
         # Searching by exact public key hash, not matching.
-        raise util.Abort("No such identity '{0}'.\n".format(wot_identifier))
+        raise util.Abort("No identity has the complete public key hash '{0}'. "
+                         "({1}) To flexibly match by partial nickname and key "
+                         "use LCWoT.\n".format(key_prefix, wot_identifier))
 
     # There should be only one result.
     # Depends on https://bugs.freenetproject.org/view.php?id=5729