correct syntax in error messages