Commit 260b37b7 authored by Leigh Stoller's avatar Leigh Stoller

Check for no nodes; this seems to happen more then I thought it would.

parent e3d5e609
......@@ -316,6 +316,13 @@ my $tmp = APT_Profile::SetSites(\$rspecstr, $sitemap, $default_aggregate_urn,
if ($tmp) {
($tmp < 0 ? fatal($errmsg) : UserError($errmsg));
}
#
# Yep, this can happen when users do not put any nodes in their rspec.
#
if (!@aggregate_urns) {
UserError("There are no nodes in your experiment, syntax error?");
}
# but do not override command line force.
$usestitcher = 1 if ($needstitcher);
......
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