Modify error message (#53525)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/53518
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53525
Reviewed By: mthrok
Differential Revision: D26900045
Pulled By: carolineechen
fbshipit-source-id: 387301381603d37d24cc829c8fed38123f268c0b