Removing errBuffer in favour of wasExpectedError per @csrwng request