Fix a typo in an error message

(cherry picked from commit 3c5648afff13e9f6e94dea4094cc3a3fb97baeea)