The message should be `throw new Error('Expected external validator function. Saw ', validator);