comparison lib/python/cc/ix.py @ 238:a4538bdfa92a

fix error message
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 26 Sep 2024 17:54:12 +0100
parents 36a9dc0d52d4
children fdec28613df3
comparison
equal deleted inserted replaced
237:567ba6010658 238:a4538bdfa92a
33 except Exception as e: 33 except Exception as e:
34 if options.debug: 34 if options.debug:
35 import traceback 35 import traceback
36 traceback.print_exc(file=sys.stderr) 36 traceback.print_exc(file=sys.stderr)
37 else: 37 else:
38 print("Process fail: %s, input line:\n %s"%(e,l), 38 print("Process fail: %s, input:\n length=%s, offset=%s, file=%s"%(e,
39 file=sys.stderr,end='') 39 length,
40 offset,
41 filename),
42 file=sys.stderr)
40 exit(3) 43 exit(3)
41 44
42 def process0(options,buf,filename,offset,length,whole): 45 def process0(options,buf,filename,offset,length,whole):
43 global TMPFILENAME, TMPFILE 46 global TMPFILENAME, TMPFILE
44 if options.save: 47 if options.save: