Improve error message when types don't match in UNION query