Improve error message
# What does this PR do?

Add specific numbers to error message.

@amyeroberts 
_The documentation is not available anymore as the PR was closed or merged._<|||||>@Mahrkeenerh for the `check_repository_consistency` tests, running `make fix-copies` in the top level of the repo should make all the necessary code updates and resolve these. It might be necessary to run `make style` as well to fix any resulting formatting issues. <|||||>@amyeroberts ran the commands, and it seems like `make style` changed 2 unrelated files as well (combined multiline definition into single line), do I add them, or ignore those changes?<|||||>@Mahrkeenerh OK, thanks for the update. Two things to try: 
* Rebase from main to include most recent changes
* Make sure the most recent style settings and libraries are in the environment `pip install -e .[quality]`
* Run `make style` again

If they're still being added, push them and I'll re-review to double check the diff's OK.

<|||||>@Mahrkeenerh All looks good to me. Thanks again for this addition! <|||||>@amyeroberts all green :green_circle: