mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 22:54:12 +00:00
improve index route parsing error message
This commit is contained in:
parent
86cd0ec81c
commit
8a142bbc95
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ where
|
|||
{
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
current: "/".parse().unwrap_or_else(|err| panic!("{}", err)),
|
||||
current: "/".parse().unwrap_or_else(|err| {
|
||||
panic!("index route does not exist:\n{}\n use MemoryHistory::with_initial_path to set a custom path", err)
|
||||
}),
|
||||
history: Vec::new(),
|
||||
future: Vec::new(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue