diff --git a/warcprox/playback.py b/warcprox/playback.py index 663e10a..7a9fead 100644 --- a/warcprox/playback.py +++ b/warcprox/playback.py @@ -131,7 +131,7 @@ class PlaybackProxyHandler(MitmProxyHandler): pass if errors: - raise Exception('warc errors at {}:{} -- {}'.format(warcfilename, offset, errors)) + raise Exception('warc errors at {}:{} -- {}'.format(location['f'], offset, errors)) warc_type = record.get_header(warctools.WarcRecord.TYPE) if warc_type != warctools.WarcRecord.RESPONSE: