fix typo in error message

fix typo in error message in l. 1213
Merge pull request #3972 from andreas-h/patch-1

MAINT: fix typo in error message