From a5735b277b83d75e4ebb37fbbfeb76dddeccb6f3 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 15 May 2009 21:02:19 +0000 Subject: [PATCH] tell us when we're wrong --- examples/readdisc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/readdisc.py b/examples/readdisc.py index ffd3ca6..058965e 100644 --- a/examples/readdisc.py +++ b/examples/readdisc.py @@ -261,6 +261,10 @@ def main(argv): start, stop - 1, offset=int(options.offset)) function(runner, t) + if t.checksum: + print 'Checksums match for track %d' % 0 + else: + print 'ERROR: checksums did not match for track %d' % 0 # overlay this rip onto the IndexTable itable.setFile(1, 0, path, stop - start, 0) @@ -282,6 +286,8 @@ def main(argv): function(runner, t) if t.checksum: print 'Checksums match for track %d' % (i + 1) + else: + print 'ERROR: checksums did not match for track %d' % (i + 1) # overlay this rip onto the IndexTable itable.setFile(i + 1, 1, path, ittoc.getTrackLength(i + 1), i + 1)