From a8c151d23fdd5d4f396610f849e5c59e3fc9ff11 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 30 Mar 2012 14:37:38 +0100 Subject: Improve error message for unknown build system name --- morphlib/buildsystem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'morphlib/buildsystem.py') diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py index 3d19af48..759693d2 100644 --- a/morphlib/buildsystem.py +++ b/morphlib/buildsystem.py @@ -104,6 +104,7 @@ class AutotoolsBuildSystem(BuildSystem): build_systems = [ ManualBuildSystem(), AutotoolsBuildSystem(), + DummyBuildSystem(), ] @@ -132,5 +133,5 @@ def lookup_build_system(name): for bs in build_systems: if bs.name == name: return bs - raise KeyError(name) + raise KeyError('Unknown build system: %s' % name) -- cgit v1.2.1