summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-01-21 01:27:08 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-01-21 01:27:08 -0500
commit03de3273c9c02020d2235b784d78a37b2b5251ee (patch)
tree370314d05b0c5aaa3c1a3a2499ef3a28c91e22fb
parentc6873d32aa121289e87be7eb16ff531c6d468d2a (diff)
downloadfork-ledger-03de3273c9c02020d2235b784d78a37b2b5251ee.tar.gz
fork-ledger-03de3273c9c02020d2235b784d78a37b2b5251ee.tar.bz2
fork-ledger-03de3273c9c02020d2235b784d78a37b2b5251ee.zip
Report an error if acprep is given an unknown phase
-rwxr-xr-xacprep3
1 files changed, 2 insertions, 1 deletions
diff --git a/acprep b/acprep
index 34a13693..6e9cb01f 100755
--- a/acprep
+++ b/acprep
@@ -291,7 +291,8 @@ class PrepareBuild(CommandLineApp):
if args:
cmd = args[0]
if not PrepareBuild.__dict__.has_key('phase_' + cmd):
- cmd = 'config'
+ sys.stderr.write("Unknown build phase: " + cmd + "\n")
+ sys.exit(1)
else:
args = args[1:]
else: