Commit cf469049 authored by Michael Pyne's avatar Michael Pyne
Browse files

Make unknown command-line modules an error.

It used to be that unknown modules would simply be attempted to build
anyways, and it would be amusing if it failed, but with the new method
of handling regular and XML-based modules, an unknown module simply
causes no output and a successful return message.

Now it results in an exception being thrown.
parent 85c8b4f2
......@@ -3716,6 +3716,10 @@ sub expandModuleSets
return $_ if exists $package_opts{$setName};
my @modulesInSet = grep { $_->moduleSet() eq $setName } (@$knownModules);
if (not @modulesInSet) {
die make_exception('Runtime', "Unknown module or module-set: $setName");
return @modulesInSet;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment