Added the ability to customize length error messages
`after_dl` should be called even if there is an issue with finding the length