This check breaks in non-English locales.

Checking the literal error message fails on my Swiss German computer.