Show
Ignore:
Timestamp:
01/09/06 15:57:15 (18 years ago)
Author:
jerome
Message:

More helpful (form me!) error message

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pclxl.py

    r300 r301  
    138138                            size = unpack(self.endianness + "I", self.minfile[pos+3:startpos])[0] 
    139139                        else :     
    140                             raise pdlparser.PDLParserError, "Error on size at %s" % (pos+2) 
     140                            raise pdlparser.PDLParserError, "Error on size at %s : %s" % (pos+2, length) 
    141141                        break 
    142142                mediatypelabel = minfile[startpos:startpos+size] 
     
    149149            # else : TODO : CUSTOM MEDIA SIZE AND UNIT !  
    150150            else :     
    151                 pos = pos - 2   # ignored 
     151                pos = pos - 2  # ignored 
    152152        self.pages[self.pagecount] = { "copies" : 1,  
    153153                                       "orientation" : orientationlabel,