Added change to display pattern in error message