Add more verbose error message

Add more verbose error for duplicate paths while generating TOC