Skip to content

Commit

Permalink
[webui][api] Fix exception raising in ChannelTarget method
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Sep 11, 2015
1 parent c56dcca commit 91c2f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/channel_target.rb
Expand Up @@ -24,7 +24,7 @@ def self.find_by_repo(repo, projectFilter = nil)
ct.each do |cti|
msg << "#{cti.channel.package.project.name}/#{cti.channel.package.name}, "
end
raise MultipleChannelTargets "Multiple channel targets found in #{msg} for repository #{repo.project.name}/#{repo.name}"
raise MultipleChannelTargets, "Multiple channel targets found in #{msg} for repository #{repo.project.name}/#{repo.name}"
end
return ct.first
end
Expand Down

0 comments on commit 91c2f66

Please sign in to comment.