Skip to content

Commit

Permalink
[api] improve multiple channel target error message
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Apr 7, 2014
1 parent f7488e0 commit a277fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/channel_target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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 "Multiple channel targets found in #{msg}"
raise "Multiple channel targets found in #{msg} for repository #{repo.project.name}/#{repo.name}"
end
return ct.first
end
Expand Down

0 comments on commit a277fe8

Please sign in to comment.