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.
This adds a failure, when
use_router
is called a second time, oruse_router
afterno_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…