[SPARK-3736] More informative log message, and fixing some indentation.