BUG: Corrected TypeError message
- [x ] closes #50974  (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ x] Added an entry in the latest `doc/source/whatsnew/v2.0.0.rst` file if fixing a bug or adding a new feature.

Sure @phofl but where??? at pandas/tests/indexes/datetimes/test_datetime.py ? 
or
pandas/tests/indexes/datetimes/test_indexing.py  maybe?  

Thanks in advance  I'd suggest

```
pandas/tests/indexes/datetimes/test_constructors.py
``` Done  thx @DeaMariaLeon  Thank you @phofl 