Fix options bug when the macro file is not found.

This commit is contained in:
Chris Johns 2013-04-13 14:30:22 +10:00
parent 9384fbad86
commit 667255cb77

View File

@ -250,7 +250,7 @@ class command_line:
if um: if um:
checked = path.exists(um) checked = path.exists(um)
if False in checked: if False in checked:
raise general.error('macro file not found: %s' % (um[um.index(False)])) raise error.general('macro file not found: %s' % (um[checked.index(False)]))
for m in um: for m in um:
self.defaults.load(m) self.defaults.load(m)