Polishing
Closes gh-31522
This commit is contained in:
@@ -30,7 +30,7 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
* from asynchronous return values, and to response rendering.
|
||||
* <li>Implemented by a {@link HandlerAdapter} in order to handle exceptions that
|
||||
* occur before a request is mapped to a handler, or for unhandled errors from a
|
||||
* handler..
|
||||
* handler.
|
||||
* </ul>
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
|
||||
@@ -628,7 +628,7 @@ class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunct
|
||||
*/
|
||||
fun context(provider: suspend (ServerRequest) -> CoroutineContext) {
|
||||
if (this.contextProvider != null) {
|
||||
throw IllegalStateException("The Coroutine context provider should be defined not more than once")
|
||||
throw IllegalStateException("The Coroutine context provider should not be defined more than once")
|
||||
}
|
||||
this.contextProvider = provider
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user