Skip to content

Commit

Permalink
Update generator to output conflicting paths when duplicate name gene…
Browse files Browse the repository at this point in the history
…rated
  • Loading branch information
sqrrrl committed Mar 30, 2017
1 parent 78017a9 commit cc80d64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/google/apis/generator/annotator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ def resolve_variants
def check_duplicate_method(m)
if @all_methods.include?(m.generated_name)
logger.error do
sprintf('Duplicate method %s generated, path %s',
m.generated_name, @names.key)
sprintf('Duplicate method %s generated, conflicting paths %s and %s',
m.generated_name, @names.key, @all_methods[m.generated_name])
end
fail 'Duplicate name generated'
end
@all_methods[m.generated_name] = m
@all_methods[m.generated_name] = @names.key
end
end
end
Expand Down

0 comments on commit cc80d64

Please sign in to comment.