##// END OF EJS Templates
hgweb: abort if config file isn't found
Matt Mackall -
r13214:5bcb6c9d stable
parent child Browse files
Show More
@@ -64,6 +64,8 b' class hgwebdir(object):'
64
64
65 if not isinstance(self.conf, (dict, list, tuple)):
65 if not isinstance(self.conf, (dict, list, tuple)):
66 map = {'paths': 'hgweb-paths'}
66 map = {'paths': 'hgweb-paths'}
67 if not os.path.exists(self.conf):
68 raise util.Abort(_('config file %s not found!') % self.conf)
67 u.readconfig(self.conf, remap=map, trust=True)
69 u.readconfig(self.conf, remap=map, trust=True)
68 paths = u.configitems('hgweb-paths')
70 paths = u.configitems('hgweb-paths')
69 elif isinstance(self.conf, (list, tuple)):
71 elif isinstance(self.conf, (list, tuple)):
General Comments 0
You need to be logged in to leave comments. Login now