Report clearer error messages when duplicate Hubs are found

- This is particularly useful when trying to generate JS Hub proxies

#2711