From 667255cb77f283dec7c62a01de54896444a64727 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sat, 13 Apr 2013 14:30:22 +1000 Subject: [PATCH] Fix options bug when the macro file is not found. --- source-builder/sb/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index 778a22f..220b836 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -250,7 +250,7 @@ class command_line: if um: checked = path.exists(um) 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: self.defaults.load(m)