From: W. Trevor King Date: Thu, 2 Sep 2010 10:23:05 +0000 (-0400) Subject: Add list of possible keys to 'block info' error for key discovery. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e6fd7905ced3ffc6118b6af38846b6ee6f8b28fe;p=hooke.git Add list of possible keys to 'block info' error for key discovery. --- diff --git a/hooke/plugin/curve.py b/hooke/plugin/curve.py index 92e5bd1..20d4e5e 100644 --- a/hooke/plugin/curve.py +++ b/hooke/plugin/curve.py @@ -388,8 +388,9 @@ File name for the output (appended). else: keys.append((index+1, new_stack, v)) if matched == False: - raise ValueError('no match found for %s in %s' - % (key_stack[index], key)) + raise ValueError( + 'no match found for %s (%s) in %s' + % (key_stack[index], key, sorted(info.keys()))) if params['output'] != None: curve = self._curve(hooke, params) with open(params['output'], 'a') as f: