Fix a minor problem with error message parameter