Update generator to output conflicting paths when duplicate name generated
This commit is contained in:
parent
78017a9f39
commit
cc80d64a75
|
@ -288,12 +288,12 @@ module Google
|
||||||
def check_duplicate_method(m)
|
def check_duplicate_method(m)
|
||||||
if @all_methods.include?(m.generated_name)
|
if @all_methods.include?(m.generated_name)
|
||||||
logger.error do
|
logger.error do
|
||||||
sprintf('Duplicate method %s generated, path %s',
|
sprintf('Duplicate method %s generated, conflicting paths %s and %s',
|
||||||
m.generated_name, @names.key)
|
m.generated_name, @names.key, @all_methods[m.generated_name])
|
||||||
end
|
end
|
||||||
fail 'Duplicate name generated'
|
fail 'Duplicate name generated'
|
||||||
end
|
end
|
||||||
@all_methods[m.generated_name] = m
|
@all_methods[m.generated_name] = @names.key
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue