X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FDebugPage.kt;h=824f6ef8576a5e1295c4c5f9ad3ed5d9f96fed56;hp=29a8f8ccb85351eee6c204b35faef9190d89d705;hb=aaf780d3c2a6f5ce47295786f3963c8b93f6a145;hpb=14d030de10eff6c2279700b73150d8e3f84bc652 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/DebugPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/DebugPage.kt index 29a8f8c..824f6ef 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/DebugPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/DebugPage.kt @@ -12,7 +12,7 @@ class DebugPage @Inject constructor(webInterface: WebInterface, loaders: Loaders override fun handleRequest(soneRequest: SoneRequest, templateContext: TemplateContext) { soneRequest.core.setDebug() - throw RedirectException("./") + redirectTo("./") } }