SPARK-850: Give better error message on the console