diff --git a/docs/intro/scala.md b/docs/intro/scala.md index f2b6d731d..eefb67ece 100644 --- a/docs/intro/scala.md +++ b/docs/intro/scala.md @@ -153,7 +153,7 @@ private def getQuestionAnswer(question: String)(using scope: AIScope): List[Stri @main def runWeather: Unit = ai { val question = "Knowing this forecast, what clothes do you recommend I should wear if I live in Cádiz?" println(getQuestionAnswer(question).mkString("\n")) -} +}.getOrElse(ex => println(ex.getMessage)) ``` > **Note**