Make build fail when URL or ALIASES are re-used/duplicated

I notice that Hugo sometimes WARN about duplicate target paths, especially with Tags and Categories, which is not a big issue to me and I never bother with that, however

  1. is there any option to add error and crash builds if in frontmatter the URL used is already used across the site on other post?

I am redefining URL manually on all my posts

  1. Error/crash when ALIASES is set to the same value as URL, which may cause a potentially infinite loop of redirects or ALIASES is set for a value that has been used across different post already?

guess not specific to warning details, but there’s a panicOnWarning = true you can play with

Got other warnings that I am ignoring :crazy_face:
Hence not :+1: but thanks.