Allow ufunc to have mismatching error value for invalid input.