~support-precisiontranslationtools/corpusfiltergraph/standalone

« back to all changes in this revision

Viewing changes to plugins/remove-spaces.py

  • Committer: Tom Hoar
  • Date: 2014-05-27 07:06:38 UTC
  • Revision ID: tahoar@precisiontranslationtools.com-20140527070638-v4ykxus1uo69k4fg
updated plugins for detailed error messages.
modified copystat() error handling in setup.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                try:
87
87
                        o = codecs.open(out,'w',self.encoding)
88
88
                except Exception as e:
89
 
                        self.errors.append([__name__,'failed','[%s] %s'%(__name__,out)])
 
89
                        self.errors.append([__name__,'failed','[%s] output: %s'%(__name__,out)])
90
90
                        logger.error('%s\t%s',*self.errors[-1][1:])
91
91
                        raise
92
92
 
93
93
                try:
94
94
                        i = codecs.open(self.inputfile,'r',self.encoding)
95
95
                except Exception as e:
96
 
                        self.errors.append([__name__,'failed','[%s] %s'%(__name__,self.inputfile)])
 
96
                        self.errors.append([__name__,'failed','[%s] input: %s'%(__name__,self.inputfile)])
97
97
                        logger.error('%s\t%s',*self.errors[-1][1:])
98
98
                        raise
99
99