more better error messages [3/N] (#147494)
Summary:
X-link: https://github.com/pytorch/pytorch/pull/147494
Approved by: https://github.com/jansel, https://github.com/zou3519
Reviewed By: wdvr
Differential Revision: D70376072
fbshipit-source-id: d5122328e062214ecb9e28ec3720f7f2983ab035