Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ChrSteinert
Copy link
Contributor

This adds a failure, when use_router is called a second time, or use_router after no_router (or the other way around).
This is to avoid confusion: When a second (or more) router is added, only the last added router actually does things. An explicit error seems more useful.

Fixes #323.

I am happy to adjust the error messages, btw…

Adds a check when `use_router` is called twice, or `use_router` after
`no_router` or the other way around, and fail directly.
This is to prohibit setting two routers, which does not have any effect…
only the last router is used, which might be confusing.

Fixes SaturnFramework#323.
Add a warning in the XML doc about the new throws.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use_router can be called multiple times, but only the last router is used

1 participant