diff --git a/lib/src/rocket.rs b/lib/src/rocket.rs index 6432b987..32ca0465 100644 --- a/lib/src/rocket.rs +++ b/lib/src/rocket.rs @@ -492,7 +492,7 @@ impl Rocket { if base.contains('<') || !base.starts_with('/') { error_!("Bad mount point: '{}'.", base); - error_!("Mount points must be absolute URIs with static paths!"); + error_!("Mount points must be static, absolute URIs: `/example`"); panic!("Bad mount point.") } diff --git a/lib/tests/mount_point.rs b/lib/tests/mount_point.rs index 9973adf6..99d8dd92 100644 --- a/lib/tests/mount_point.rs +++ b/lib/tests/mount_point.rs @@ -8,5 +8,5 @@ fn bad_dynamic_mount() { #[test] fn good_static_mount() { - rocket::ignite().mount("abcdefghijkl_mno", vec![]); + rocket::ignite().mount("/abcdefghijkl_mno", vec![]); }