Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fixes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Mar 27, 2019
1 parent b20b710 commit ee581ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/io/kweb/routing/routing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.kweb.routing

import io.ktor.routing.*
import io.ktor.routing.RoutingPathSegmentKind.*
import io.kweb.Kweb
import io.kweb.*
import io.kweb.dom.element.creation.ElementCreator
import io.kweb.dom.element.creation.tags.*
import io.kweb.dom.element.events.on
Expand Down Expand Up @@ -61,6 +61,8 @@ fun ElementCreator<*>.route(cacheOnClient : Boolean = false, routeReceiver: Rout
} else {
throw RuntimeException("Unable to find pathRenderer for template $template")
}
} else {
throw NotFoundException("Page not found")
}
}
}
Expand Down

0 comments on commit ee581ba

Please sign in to comment.