Skip to content

Commit

Permalink
[backend] product converter: die when a used condition is not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 21, 2013
1 parent 36f2835 commit dbdc902
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/bs_productconvert
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ sub groupToPackages( $$$$$ )
# print "Handling group conditional $condList->{name}\n";
my $cond = $conditionals{ $condList->{name} };

die( "ERROR: Unknown condition is used: $condList->{name}\n" ) unless $cond;

if( $cond->{platform} ) {
my @platforms = @{$cond->{platform}};

Expand Down

0 comments on commit dbdc902

Please sign in to comment.