Skip to content

Commit

Permalink
[backend] improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 19, 2015
1 parent 1b9a45d commit 64d9a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -6289,9 +6289,9 @@ sub checkprojrepoarch {
return $proj if $proj->{'remoteurl'};
return $proj unless defined $repoid;
my $repo = (grep {$_->{'name'} eq $repoid} @{$proj->{'repository'} || []})[0];
die("404 project has no repository '$repoid'\n") unless $repo;
die("404 project '$projid' has no repository '$repoid'\n") unless $repo;
return $proj unless defined $arch;
die("404 project has no architecture '$arch'\n") unless grep {$_ eq $arch} @{$repo->{'arch'} || []};
die("404 repository '$projid/$repoid' has no architecture '$arch'\n") unless grep {$_ eq $arch} @{$repo->{'arch'} || []};
return $proj;
}

Expand Down

0 comments on commit 64d9a87

Please sign in to comment.