Improve error message for mismatching versions