diff --git a/src/main/kotlin/io/github/wulkanowy/api/interceptor/NotLoggedInErrorInterceptor.kt b/src/main/kotlin/io/github/wulkanowy/api/interceptor/NotLoggedInErrorInterceptor.kt index dc01b2a0..1283a0d9 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/interceptor/NotLoggedInErrorInterceptor.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/interceptor/NotLoggedInErrorInterceptor.kt @@ -20,7 +20,7 @@ class NotLoggedInErrorInterceptor(private val loginType: LoginType) : Intercepto if (chain.request().url().toString().contains("/Start.mvc/Get")) { doc.select(".errorBlock").let { - if (it.isNotEmpty()) throw NotLoggedInException("${it.select(".errorTitle").text()}}") + if (it.isNotEmpty()) throw NotLoggedInException(it.select(".errorTitle").text()) } }