fix error message for unsupported patterns