Improve error message if the Option type detection failed