Add an error when passed a bad pattern