Changeset 1063 in tailor


Ignore:
Timestamp:
02/09/06 20:41:25 (7 years ago)
Author:
lele@…
Hash name:
20060209194125-7a6fb-6df67e14b4002acfe459c3f75098b3df3a667ce8
Message:

More informative error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository.py

    r1058 r1063  
    245245 
    246246        if not self.module: 
    247             self.log.critical('Missing module information') 
     247            self.log.critical('Missing module information in %r', self.name) 
    248248            raise ConfigurationError("Must specify a repository and maybe " 
    249249                                     "a module also") 
     
    347347 
    348348        if not self.repository: 
    349             self.log.critical('Missing repository information') 
     349            self.log.critical('Missing repository information in %r', self.name) 
    350350            raise ConfigurationError("Must specify the root of the " 
    351351                                     "Subversion repository used " 
     
    354354 
    355355        if not self.module: 
    356             self.log.critical('Missing module information') 
     356            self.log.critical('Missing module information in %r', self.name) 
    357357            raise ConfigurationError("Must specify the path within the " 
    358358                                     "Subversion repository as 'module'") 
    359359 
    360360        if self.module == '.': 
    361             self.log.warning("Replacing '.' with '/' in module name") 
     361            self.log.warning("Replacing '.' with '/' in module name in %r", 
     362                             self.name) 
    362363            self.module = '/' 
    363364        elif not self.module.startswith('/'): 
    364             self.log.debug("Prepending '/' to module %r", self.module) 
     365            self.log.debug("Prepending '/' to module %r in %r", 
     366                           self.module, self.name) 
    365367            self.module = '/' + self.module 
    366368 
     
    377379 
    378380        if self.module and self.module.startswith('/'): 
    379             self.log.debug("Removing starting '/' from module %r", self.module) 
     381            self.log.debug("Removing starting '/' from module %r in %r", 
     382                           self.module, self.name) 
    380383            self.module = self.module[1:] 
    381384        if self.module and not self.module.endswith('/'): 
Note: See TracChangeset for help on using the changeset viewer.