fix typo in exception
Merge pull request #2681 from lukas-vlcek/master

Fix exception typo